Skip to content

Instantly share code, notes, and snippets.

@sergeykish
Last active November 20, 2015 10:40
Show Gist options
  • Save sergeykish/793bc7f678eb4bb29fc4 to your computer and use it in GitHub Desktop.
Save sergeykish/793bc7f678eb4bb29fc4 to your computer and use it in GitHub Desktop.
$ uname -a
Linux localhost 4.2.5-1-ARCH #1 SMP PREEMPT Tue Oct 27 08:13:28 CET 2015 x86_64 GNU/Linux
$ node -v
v5.1.0
$ elm-make -v
elm-make 0.16 (Elm Platform 0.16.0)
...
$ elm package install evancz/start-app
$ du -a elm-stuff/packages/evancz/elm-effects/
4 elm-stuff/packages/evancz/elm-effects/2.0.1/src/Native/Effects.js
4 elm-stuff/packages/evancz/elm-effects/2.0.1/src/Native
8 elm-stuff/packages/evancz/elm-effects/2.0.1/src/Effects.elm
12 elm-stuff/packages/evancz/elm-effects/2.0.1/src
4 elm-stuff/packages/evancz/elm-effects/2.0.1/elm-package.json
4 elm-stuff/packages/evancz/elm-effects/2.0.1/README.md
4 elm-stuff/packages/evancz/elm-effects/2.0.1/LICENSE
4 elm-stuff/packages/evancz/elm-effects/2.0.1/.gitignore
28 elm-stuff/packages/evancz/elm-effects/2.0.1
28 elm-stuff/packages/evancz/elm-effects/
$ elm-make main.elm --output=elm.js
I cannot find find module 'Effects'.
Module 'TestImport' is trying to import it.
Potential problems could be:
* Misspelled the module name
* Need to add a source directory or new dependency to elm-package.json
$ elm package install evancz/elm-effects
$ elm-make main.elm --output=elm.js
-- SYNTAX PROBLEM ----------------------------------------------------- main.elm
I ran into something unexpected when parsing your code!
I am looking for one of the following things:
"{-|"
a port declaration
a type declaration
a value definition
an import
an infix declaration
Detected errors in 1 module.
{
"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": "3.0.0 <= v < 4.0.0",
"evancz/start-app": "2.0.2 <= v < 3.0.0"
},
"elm-version": "0.16.0 <= v < 0.17.0"
}
module TestImport where
import StartApp
import Effects
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment