Skip to content

Instantly share code, notes, and snippets.

Created Apr 1, 2015
What would you like to do?
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