Get function as parameter in haskell
问题 I can't figure this, I have a type called Enumeration > type Enumeration a = Int -> [a] And I need to map over it. I wrote this following function: > imapE :: (a -> b) -> Enumeration a -> Enumeration b > imapE f (m fa) = \n -> imapF f fa where imapF is defined like this: > imapF :: (a -> b) -> [a] -> [b] > imapF _ [] = [] > imapF f (x:xs) = f x : imapF f xs but when I try to load my code I get the following error BinaryTrees.lhs:91:14: Parse error in pattern: m regarding my imapE function. I