On 8/28/06, John Hughes <[EMAIL PROTECTED]> wrote:
As for an example of fmap causing trouble, recall the code I posted last
week sometime:

class Foldable f where
  fold :: (a -> a -> a) -> a -> f a -> a

I'd call this a case of "Foldable" causing trouble. :) Fold is
somewhat specific to the structure of the underlying collection (hence
the numerous fold* functions), map is not.

--
Taral <[EMAIL PROTECTED]>
"You can't prove anything."
   -- Gödel's Incompetence Theorem
_______________________________________________
Haskell-prime mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-prime

Reply via email to