You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
moduleMainexposing (main)
importHtmlmain =let
text =String.toUpper
(String.trim """Hello!""")inHtml.text text
elm-format 0.8.5 turns that into:
moduleMainexposing (main)
importHtmlmain =let
text =String.toUpper
(String.trim """Hello!""")inHtml.text text
Diff:
String.toUpper
(String.trim """
Hello!
-"""- )+""")
in
Html.text text
Trying to compile that, Elm reports this error:
-- UNFINISHED PARENTHESES ----------------------------------------- src/Main.elmI was expecting to see a closing parenthesis next:10|(String.trim """11| Hello!12| """)^Try adding a ) to see if that helps!Note:I can get confused by indentation in cases like this, so maybe you have a
closing parenthesis but it is not indented enough?
Workaround:
moduleMainexposing (main)
importHtmlmain =let
text =String.toUpper <|String.trim """Hello!"""inHtml.text text
The text was updated successfully, but these errors were encountered:
This is valid according to Elm 0.19.1:
elm-format 0.8.5 turns that into:
Diff:
Trying to compile that, Elm reports this error:
Workaround:
The text was updated successfully, but these errors were encountered: