Skip to content

Instantly share code, notes, and snippets.

View tsloughter's full-sized avatar

Tristan Sloughter tsloughter

View GitHub Profile
-module(test).
-export([main/1]).
main(A) ->
if
A < 0 ->
io:format("true, A is less than 0");
true;
A == 1 ->
'how???'
(21:56:17) λ mv relx "relx "
[tristan@leon ~/Downloads]
(21:56:33) λ ./relx\
escript: exception error: undefined function 'relx ':main/1
in function escript:run/2 (escript.erl, line 752)
in call from escript:start/1 (escript.erl, line 276)
in call from init:start_it/1
in call from init:start_em/1
-----> Built sandbox 4bbf319 (howistart-0.1), 383M
-----> Validating sandbox 4bbf319 (howistart-0.1)
-----> Stripping sandbox 4bbf319 (howistart-0.1)... done, 361M
-----> Caching sandbox 4bbf319 (howistart-0.1)
Archiving halcyon-sandbox-ghc-7.6.3-howistart-0.1-4bbf31953546d884972e90ed5e291b4c853d4c2d.tar.gz... done, 56M
Uploading s3://howistart_packages/linux-ubuntu-10-04-x64/halcyon-sandbox-ghc-7.6.3-howistart-0.1-4bbf31953546d884972e90ed5e291b4c853d4c2d.tar.gz... done
Uploading s3://howistart_packages/linux-ubuntu-10-04-x64/halcyon-sandbox-ghc-7.6.3-howistart-0.1-4bbf31953546d884972e90ed5e291b4c853d4c2d.cabal.config... done
-----> Activating sandbox 4bbf319 (howistart-0.1)... done
-----> Restoring build
λ git push heroku master
Fetching repository, done.
-----> Git submodules detected, installing
Submodule 'snaplets/heist/templates/posts' (git://github.com/howistart/howistart.git) registered for path 'snaplets/heist/templates/posts'
Initialized empty Git repository in /tmp/build_cc89da3b-72d1-43f0-a63d-40c23e9ece3e/snaplets/heist/templates/posts/.git/
Submodule path 'snaplets/heist/templates/posts': checked out '4e01045f8dff3695773ea6e8a8ed227805387394'
-----> Fetching custom git buildpack... done
-----> Haskell app detected
-----> Installing howistart-0.1
cabal: Error: some packages failed to install:
MonadCatchIO-transformers-0.3.0.0 failed during the building phase. The
exception was:
ExitFailure 1
heist-0.13.1.2 depends on MonadCatchIO-transformers-0.3.0.0 which failed to
install.
lens-3.10.2 depends on MonadCatchIO-transformers-0.3.0.0 which failed to
install.
snap-0.13.2.8 depends on MonadCatchIO-transformers-0.3.0.0 which failed to
install.
cabal: Error: some packages failed to install:
http-conduit-2.0.0.9 failed during the building phase. The exception was:
ExitFailure 1
pandoc-1.12.3.3 depends on http-conduit-2.0.0.9 which failed to install.
*** ERROR: Using Cabal failed
λ git push staging master
Fetching repository, done.
-----> Git submodules detected, installing
Submodule 'snaplets/heist/templates/posts' (git://github.com/howistart/howistart.git) registered for path 'snaplets/heist/templates/posts'
Initialized empty Git repository in /tmp/build_175dfcbe-f8cf-4f02-9435-8a6a01cb0112/snaplets/heist/templates/posts/.git/
Submodule path 'snaplets/heist/templates/posts': checked out 'caebbcee769ef2b8629ec6107c2fa8be03f84727'
-----> Fetching custom git buildpack... done
-----> Haskell app detected
-----> Installing howistart-0.1
[4 of 7] Compiling PostHandler ( src/handlers/PostHandler.hs, dist/build/howistart/howistart-tmp/PostHandler.o )
[5 of 7] Compiling CategoryHandler ( src/handlers/CategoryHandler.hs, dist/build/howistart/howistart-tmp/CategoryHandler.o )
[6 of 7] Compiling Site ( src/Site.hs, dist/build/howistart/howistart-tmp/Site.o )
[7 of 7] Compiling Main ( src/Main.hs, dist/build/howistart/howistart-tmp/Main.o )
Linking dist/build/howistart/howistart ...
Installing executable(s) in /app/.halcyon/install/bin
-----> Caching build
Archiving halcyon-build-ghc-7.6.3-howistart-0.1.tar.gz... done, 21M
-----> Cleaning cache... done
-----> Installed GHC 7.6.3, 768M
-----> Cutting GHC 7.6.3... done, 258M
-----> Stripping GHC 7.6.3... done, 223M
-----> Caching GHC 7.6.3
Archiving halcyon-ghc-7.6.3.tar.xz... done, 19M
Uploading s3://howistart_packages/linux-ubuntu-10-04-x64/halcyon-ghc-7.6.3.tar.xz... done
-----> Activating GHC 7.6.3... done
-----> Inferring Cabal version... done, 1.20.0.2
-----> Restoring updated Cabal 1.20.0.2
(def app-state
(atom {:view home/view, :data {:id "cluster0"}}))
(def history (Html5History.))
(.setUseFragment history false)
(.setPathPrefix history "")
(.setEnabled history true)
(defn listen [el type]
(let [out (chan)]