We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
case
Bar.elm:
module Bar where type Action = Baz | Qux
Foo.elm:
module Foo where import Bar exposing (Action(Qux)) type Action = NoOp | BarAction Bar.Action foo : Action -> Int foo action = case action of NoOp -> 0 BarAction Bar.Baz -> 1 -- ERROR! BarAction Qux -> 2 -- works faa : Bar.Action -> Int faa action = case action of Bar.Baz -> 0 -- works Bar.Qux -> 1 -- works
Compilation result:
Error in Foo.elm: Parse error at (line 11, column 18): unexpected "." expecting whitespace, a newline, pattern, cons operator '::' or arrow (->)
Expected behaviour: BarAction Bar.Baz should match without error.
BarAction Bar.Baz
The text was updated successfully, but these errors were encountered:
Qualified imports are also a problem in record updates.
Sorry, something went wrong.
Should be fixed in 0.17
Thanks for the report!
Successfully merging a pull request may close this issue.
Bar.elm:
Foo.elm:
Compilation result:
Expected behaviour:
BarAction Bar.Baz
should match without error.The text was updated successfully, but these errors were encountered: