I'm running Elm 0.17.1, and the compiler doesn't care whether the *name 
given in the module declaration* of the module being compiled (with either 
elm-make or elm-reactor) matches the *file name*.

However, the compiler *does* catch if the name in the module declaration 
doesn't start with a capital letter, as seen below:

-- SYNTAX PROBLEM ------------------------------------------------- 
src\Main.elm

I ran into something unexpected when parsing your code!

1| module xNotMain exposing (..)
          ^
I am looking for one of the following things:

    the name of this module
    whitespace


But, if I turn `xNotMain` into `NotMain`, then the compiler succeeds, and 
the program works as intended, despite the name in the module declaration 
still not matching the file name. Note, however, that any imported modules 
*are* checked!, but *not* the "base" file itself.

Where should I submit this error? 
github.com/elm-lang/error-message-catalog/issues ?. Technically it is not 
an error message, but the lack of one.

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to