Created
April 1, 2015 11:15
-
-
Save shigemk2/9986add0498e9a372906 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 Day = Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday | |
deriving (Eq, Ord, Show, Read, Bounded, Enum) | |
main = do | |
print Monday | |
print $ Monday == Monday | |
print $ Sunday == Monday | |
print $ Sunday > Monday |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment