Single quote not allowed in Html.elm elm 0.18

Hi everyone, I have a strange problem in the Elm.

Just updated elm from 0.17 to 0.18. The project worked perfectly at 0.17. Now complier throws an error at 018.

What did he say:

-- SYNTAX PROBLEM ---------- elm-stuff/packages/elm-   lang/html/1.1.0/src/Html.elm

Ran into a single quote in a variable name. This was removed in 0.18!

9|   , section, nav, article, aside, header, footer, address, main', body                                                                  ^
Change it to a number or an underscore, like main_ or main1
Or better yet, choose a more descriptive name!

Does anyone have this problem?

What could be the problem: I'm using "main" already in

main : Program Never

Elm seems to have a problem because Html has a main function. Is this possible?

Yours faithfully

Martin

+4
source share
2 answers

Based on your error message, it looks like you are referencing an older version of the package elm-lang/html. You will need to upgrade to the latest version .

main', 0.18. Elm 0.18. 0.18:

Primes - , x ', . (, ), , "x prime" ! , , . . , , , .

+3

. . Elm 0.18, . , elm-stuff elm-reactor, , html-2.0.0

+1

Source: https://habr.com/ru/post/1661293/


All Articles