Skip to content

Instantly share code, notes, and snippets.

@eamelink
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eamelink/ea52bbd3015e56823612 to your computer and use it in GitHub Desktop.
Save eamelink/ea52bbd3015e56823612 to your computer and use it in GitHub Desktop.
module Main where
import Debug.Trace
import Control.Monad.Aff
main = liftEff' $ trace "Hello world!"
{- Gives this output:
* Building project in /Users/foo/bar/quux
* Build successful.
Hello world!
/Users/foo/bar/quux/output/Control.Monad.Aff/index.js:222
error(e);
^
TypeError: undefined is not a function
at /Users/foo/bar/quux/output/Control.Monad.Aff/index.js:222:13
at /Users/foo/bar/quux/output/Control.Monad.Aff/index.js:247:11
at Object.main (/Users/foo/bar/quux/output/Control.Monad.Aff/index.js:212:16)
at Object.<anonymous> (/private/var/folders/4x/qzv9fddn01z2dtnrl6bscq6h0000gn/T/pulp-run115414-15107-1t78qk7.js:1:79)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
* ERROR: Subcommand terminated with error code 1
-}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment