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
http://www.haskell.org/ghc/docs/7.6.3/html/users_guide/syntax-extns.html#multi-way-if Code like:
y = if | x < 3 -> 0 | x < 7 -> 1 | otherwise -> 2
gives Parse error when you try to indent second line.
The text was updated successfully, but these errors were encountered:
This is really very unpleasant. As a workaround, you can use:
case () of _ | test1 -> ... _ | test2 -> ...
Sorry, something went wrong.
Yes, but the only purpose of using the MultiWayIf syntax extension in the first place is to avoid writing case () of ... :)
case () of ...
50f0ab7
No branches or pull requests
http://www.haskell.org/ghc/docs/7.6.3/html/users_guide/syntax-extns.html#multi-way-if
Code like:
gives Parse error when you try to indent second line.
The text was updated successfully, but these errors were encountered: