Add the haskell book
This commit is contained in:
11
Haskell-book/11/Garden.hs
Normal file
11
Haskell-book/11/Garden.hs
Normal file
@@ -0,0 +1,11 @@
|
||||
module Garden where
|
||||
|
||||
data FlowerType = Gardenia
|
||||
| Daisy
|
||||
| Rose
|
||||
| Lilac
|
||||
deriving Show
|
||||
|
||||
type Gardener = String
|
||||
|
||||
data Garden = Garden Gardener FlowerType deriving Show
|
||||
Reference in New Issue
Block a user