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

4 lines
137 B
Haskell
Raw Permalink Normal View History

2013-04-10 16:57:12 -07:00
data Banana = Foo -- the implementation doesn't really matter in this case
instance Eatable Banana where
eat _ = "I'm eating a banana"