Created
May 2, 2019 19:59
-
-
Save dmwit/ec3859dd3de56f3a835998b219b7a996 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- bad: everything in ... is nested | |
do | |
v <- foo | |
case v of | |
Matches v' -> ... | |
_ -> throwError "doesn't match" | |
-- good: ... is not nested | |
do | |
v <- foo | |
v' <- case v of | |
Matches v' -> return v' | |
_ -> throwError "doesn't match" | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment