Closed ChristophP closed 5 years ago
Ended up removing the hint in https://github.com/elm/compiler/commit/0cd361d54c3a56940ebf94882069adf1fbc4600e. Seems like it's actively confusing in some cases, and in general, probably very rarely the real problem.
Thank you for reporting this!
When trying to initiate a
Browser.application
with incorrect arguments, it shows a hint that says:Did you forget to wrap [] around it?
. In the SSCCE the view should have a{ ..., body: List (Html msg)}
instead of{ ..., body: Html msg}
. Also the definitions forUrlRequest
andurlChange
are wrong. Probably the compiler is trying to say that a list should be used. But the hint is a bit a confusing because many things are wrong here and it just says wrap a[]
around it without saying around what. SSCCE:Produces this Error Msg