Quick Summary:
Elm compiler error output for "Name Clash" is unreadable due to extra spaces
SSCCE
module Main exposing (main)
import Html exposing (..)
main =
Html.text "Hello World"
f x x =
x
- Elm: 0.19.1
- Browser: N/A
- Operating System: OsX 10.13.6
Additional Details
When compiling with elm make src/Main.elm, I expect output:
Detected problems in 1 module.
-- NAME CLASH ----------------------------------------------------- src/Main.elm
The `f` function has multiple `x` arguments.
10| f x x =
^ ^
How can I know which one you want? Rename one of them!
Actual output:
-- NAME CLASH ----------------------------------------------------- src/Main.elm
The `f` function has multiple `x` arguments.
10| f x x =
^ ^
How can I know which one you want? Rename one of them!
Note: The extra spaces cause the horizontal scrollbar in github markdown code snippet. The extra spaces in terminal cause line-wrap, meaning you have to scroll way up to see the issue.
Quick Summary:
Elm compiler error output for "Name Clash" is unreadable due to extra spaces
SSCCE
Additional Details
When compiling with
elm make src/Main.elm, I expect output:Actual output:
Note: The extra spaces cause the horizontal scrollbar in github markdown code snippet. The extra spaces in terminal cause line-wrap, meaning you have to scroll way up to see the issue.