Open Ryan1729 opened 8 years ago
I had a look at the compiler repo and noticed this pull request was already merged. I suppose that fixes most of the problem, but in the particular case of someone trying to use no args at all it seems like a good idea to suggest adding a parameter of ()
(since AFAICT that's the best solution at this time.)
Compiling an elm file like this:
gives the following error:
but http://guide.elm-lang.org/effect_managers/ doesn't have any info related to this error on it. I think it would be better if the error message linked to the ports page of the guide and if the possible type signatures were summarized in the error message. AFAICT only one argument ports are allowed so the error message could be something like this:
This issue also came up before on the mailing list
Also, issues that a change like the one I described could fix have come up on this repo as well:
134
166