Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- There are two ways to declare stuff
- -- 1.
- data Person = Person String Int deriving (Eq, Show)
- -- 2.
- type HumanName = String
- type HumanAge = Int
- data Human = Human HumanName HumanAge deriving (Eq, Show)
- -- 3.
- data Individual = Individual { name :: String, age :: Int } deriving (Eq, Show)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement