flatMap :: (a -> List b) -> List a -> List bflatMap f xs = foldRight undefined undefined _undefined
Found hole ‘_undefined’ with type: List a0 Where: ‘a0’ is an ambiguous type variable Relevant bindings include xs :: List a (bound at src/Course/List.hs:266:11) f :: a -> List b (bound at src/Course/List.hs:266:9) flatMap :: (a -> List b) -> List a -> List b (bound at src/Course/List.hs:266:1) In the third argument of ‘foldRight’, namely ‘_undefined’ In the expression: foldRight undefined undefined _undefined In an equation for ‘flatMap’: flatMap f xs = foldRight undefined undefined _undefined
The a0 could be anything as long as it isn't a or b.
--
You received this message because you are subscribed to the Google Groups "haskell-exercises" group.
To unsubscribe from this group and stop receiving emails from it, send an email to haskell-exerci...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.