You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It took me a while to find out why this error message was complaining, working my way through Elm In Action:
-- RESERVED WORD /elm-in-action/02/src/PhotoGroove.elm
I was not expecting to run into the `module` keyword here:
21| module PhotoGroove exposing (main)
^^^^^^
It is a reserved word. Try changing the name to something else?
{-| Beginning our Elm app: Photo Groove!-}-- #1modulePhotoGrooveexposing (main)
I don't think Python or Racket lang have this restriction and it may not be clear enough for complete beginners that it isn't allowed. I'm used to doing this in HTML/CSS also!
So please make the error message more helpful, and introduce documenting guidelines in the Elm guide on modules etc, I couldn't find this document easily:
The module documentation comes after the module declaration, but before the imports. This is so the first thing in the file is the module name and the second is how to use it.
Perhaps that could be worded a little better? `"comments must be written after the module declaration" or something.
Thanks.
The text was updated successfully, but these errors were encountered:
It took me a while to find out why this error message was complaining, working my way through Elm In Action:
Also took me a while to find this thread comment on no comments allowed above the
module
statement:I don't think Python or Racket lang have this restriction and it may not be clear enough for complete beginners that it isn't allowed. I'm used to doing this in HTML/CSS also!
So please make the error message more helpful, and introduce documenting guidelines in the Elm guide on modules etc, I couldn't find this document easily:
Perhaps that could be worded a little better? `"comments must be written after the module declaration" or something.
Thanks.
The text was updated successfully, but these errors were encountered: