learnyouanelm / learnyouanelm.github.io

“Learn You an Elm!”, based on LYAH by Miran Lipovača
http://learnyouanelm.github.io/
93 stars 16 forks source link

First example does not compile. #13

Open cacieprins opened 8 years ago

cacieprins commented 8 years ago
import Graphics.Element exposing (show)

toPrint =
  0

main =
  show toPrint

Pasted into elm-try, compile gives:

I cannot find module 'Graphics.Element'.

Module 'Temp1465239843291130' 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
JoeyEremondi commented 8 years ago

Yeah, Graphics.Element is no longer a default library in Elm, HTML is greatly preferred. Graphics.* is not available in elm-lang.org/try anymore.

I won't have time to update the examples for quite some time, so I'm open to PRs.

On Mon, Jun 6, 2016 at 12:05 PM, Jonathan Prins notifications@github.com wrote:

`import Graphics.Element exposing (show)

toPrint = 0

main = show toPrint`

Pasted into elm-try, compile gives:

`I cannot find module 'Graphics.Element'.

Module 'Temp1465239843291130' 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 `

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/learnyouanelm/learnyouanelm.github.io/issues/13, or mute the thread https://github.com/notifications/unsubscribe/ACzn0pqmIKBR-GOoQwAnrKrmaKhj9JZjks5qJG9igaJpZM4IvNhH .