mod47.hs:6:10: Could not deduce (Num a) from the context (Eq a, Enum a) arising from the superclasses of an instance declaration at mod47.hs:6:10-34 Possible fix: add (Num a) to the context of the instance declaration In the instance declaration for `Bar [a]'