Created
November 2, 2018 04:33
-
-
Save gokulnath/6bbb7c59972113b4e7590d17505ff959 to your computer and use it in GitHub Desktop.
This file contains 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
data Mood = Blah | Woot deriving Show | |
changeMood :: Mood -> Mood | |
-- changeMood Mood = Woot | |
-- changeMood _ = Blah | |
changeMood val | |
| val == Blah = Woot | |
| val == Woot = Blah |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment