RosettaCodeData/Task/Constrained-genericity/Haskell/constrained-genericity-3.hs
2023-07-01 13:44:08 -04:00

3 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"