Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- | Practice with Data types
- data Colour = Brown | Red | White | Black deriving (Enum)
- instance Show Colour where
- show Brown = "Brown"
- show Red = "Red"
- show White = "White"
- show Black = "Black"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement