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

3 lines
55 B
Haskell
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
instance (Food a) => Eatable a where
eat x = munch x