Files with UTF-8 encoding with the Unicode BOM (byte order mark) at the start don't compile, and the error is particularly cryptic in elm-reactor, since the error pointer points to a line that looks valid, since the BOM is not visible. On the command line (elm-make) with a non unicode terminal, 3 garbage characters appear, which might make this a bit more obvious.
Elm Platform 0.17.0 on Windows 7.
Here's an example from elm-reactor:
Detected errors in 1 module.
-- SYNTAX PROBLEM ---------------------------------------------------- Hello.elm
I ran into something unexpected when parsing your code!
1| import Html exposing (div, button, text)
^
And on my badly-configured terminal:
-- SYNTAX PROBLEM ---------------------------------------------------- Hello.elm
I ran into something unexpected when parsing your code!
1| import Html exposing (div, button, text)
Files with UTF-8 encoding with the Unicode BOM (byte order mark) at the start don't compile, and the error is particularly cryptic in elm-reactor, since the error pointer points to a line that looks valid, since the BOM is not visible. On the command line (elm-make) with a non unicode terminal, 3 garbage characters appear, which might make this a bit more obvious.
Elm Platform 0.17.0 on Windows 7.
Here's an example from elm-reactor:
And on my badly-configured terminal: