RosettaCodeData/Task/Constrained-genericity/Haskell/constrained-genericity-3.hs

4 lines
137 B
Haskell

data Banana = Foo -- the implementation doesn't really matter in this case
instance Eatable Banana where
eat _ = "I'm eating a banana"