Skip to content

Instantly share code, notes, and snippets.

@shigemk2
Created April 1, 2015 11:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shigemk2/9986add0498e9a372906 to your computer and use it in GitHub Desktop.
Save shigemk2/9986add0498e9a372906 to your computer and use it in GitHub Desktop.
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