bug?

Hans Aberg haberg@matematik.su.se
Fri, 13 Oct 2000 13:21:00 +0200


At 09.08 +0200 0-10-13, Friedrich Dominicus wrote:

>On my experiments I tried to run the Haskore example. But I get the
>following error:
>ERROR "/usr/local/share/hugs/lib/hugs/../Haskore/src/Monads.hs" (line
>55): No member "map" in class "Functor"
>
>
>Now I looked into the Prelude and there one can just find fmap
>class Functor f where
>    fmap :: (a -> b) -> (f a -> f b)
>
>Now there is obvious no map. So I guess it must either be added or the
>Monads.hs from Haskore have to be patched.

Try to patch Haskore by changing map to fmap; I think that class may have
changed that name. Also, there is a "Monad.hs" in the standards library
that come with Hugs. -- I do not know how the "Monads.hs" that Haskore
seems to call relates to that one, but it would be better if Haskore is
changed to use "Monad.hs" instead, if possible.

  Hans Aberg