Skip to content

Instantly share code, notes, and snippets.

@Bogdanp
Last active May 28, 2016 09:20
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 Bogdanp/1613141a4e64330b8d4580f3a54b114d to your computer and use it in GitHub Desktop.
Save Bogdanp/1613141a4e64330b8d4580f3a54b114d to your computer and use it in GitHub Desktop.
{
"version": "1.0.0",
"summary": "helpful summary of your project, less than 80 characters",
"repository": "https://github.com/user/project.git",
"license": "BSD3",
"source-directories": [
"."
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "4.0.1 <= v < 5.0.0",
"elm-lang/html": "1.0.0 <= v < 2.0.0",
"elm-lang/navigation": "1.0.0 <= v < 2.0.0"
},
"elm-version": "0.17.0 <= v < 0.18.0"
}⏎
module Main exposing (main)
import Html exposing (div)
import Navigation
x =
42
main =
Navigation.program (Navigation.makeParser identity)
{ init = \_ -> ( x, Cmd.none )
, update = \_ _ -> ( x, Cmd.none )
, urlUpdate = \_ _ -> ( x, Cmd.none )
, view = \_ -> div [] []
, subscriptions = \_ -> Sub.none
}
> import Main exposing (..)
/Users/bogdan/test/repl-temp-000.js:6060
onDocument: F3(on(document)),
^
ReferenceError: document is not defined
at /Users/bogdan/test/repl-temp-000.js:6060:20
at Object.<anonymous> (/Users/bogdan/test/repl-temp-000.js:6064:2)
at Object.<anonymous> (/Users/bogdan/test/repl-temp-000.js:7671:4)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Function.Module.runMain (module.js:447:10)
at startup (node.js:148:18)
at node.js:405:3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment