Skip to content

Instantly share code, notes, and snippets.

@shigemk2

shigemk2/car.hs

Created Apr 1, 2015
Embed
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
You can’t perform that action at this time.