elm-lang / elm-make

A build tool for Elm projects
BSD 3-Clause "New" or "Revised" License
175 stars 45 forks source link

Warnings for infix toplevel annotations omit parentheses #54

Closed rtfeldman closed 9 years ago

rtfeldman commented 9 years ago

Got this recently:

screen shot 2015-08-27 at 6 24 11 pm

The correct annotation would include parentheses like so:

(=>) : a -> b -> (a, b)

For consistency, might also want parentheses in the warning message itself, e.g. "Top level value (=>) does not..."

evancz commented 9 years ago

Can you move this to elm-compiler, these warnings are not generated here.

rtfeldman commented 9 years ago

Sure - moved to https://github.com/elm-lang/elm-compiler/issues/1059