elm-light icon indicating copy to clipboard operation
elm-light copied to clipboard

Module pattern-match function bindings cause AST error

Open carlthuringer opened this issue 7 years ago • 0 comments

In my wedding site repo I recently converted to elm-css.

The elm-css guide advises that I acquire the id, class, and classList helpers like so:

{ id, class, classList } =
    Html.CssHelpers.withNamespace "dreamwriter"

However when I use this in LightTable with elm-light...

wedding/src/Components/Party.elm
{:message "Expected \"(\", \"--\", \"import\", \"infix\", \"infixl\", \"infixr\", \"port\", \"type\", \"{-\", \"{-|\", [a-z], comment, end of input, newline or whitespace but \"{\" found.", :expected [{:type "literal", :value "(", :description "\"(\""} {:type "literal", :value "--", :description "\"--\""} {:type "literal", :value "import", :description "\"import\""} {:type "literal", :value "infix", :description "\"infix\""} {:type "literal", :value "infixl", :description "\"infixl\""} {:type "literal", :value "infixr", :description "\"infixr\""} {:type "literal", :value "port", :description "\"port\""} {:type "literal", :value "type", :description "\"type\""} {:type "literal", :value "{-", :description "\"{-\""} {:type "literal", :value "{-|", :description "\"{-|\""} {:type "class", :value "[a-z]", :description "[a-z]"} {:type "other", :description "comment"} {:type "end", :description "end of input"} {:type "other", :description "newline"} {:type "other", :description "whitespace"}], :found "{", :location {:start {:offset 241, :line 10, :column 1}, :end {:offset 242, :line 10, :column 2}}, :name "SyntaxError"}

Please advise

carlthuringer avatar Jun 11 '17 17:06 carlthuringer