For the purpose of learning the material, it might be easiest to just write: class MyFunctor f where myFmap :: (a -> b) -> f a -> f b and then create instances of that, instead. This way, you won't have any conflicts with existing instances. On Sat, Oct 24, 2015 at 10:16 AM, Petr Vápenka <petr.vapenka@gmail.com> wrote:
You can try NoImplicitPrelude language extension (this may not work, too) or use newtype wrappers or normal data types with the same shape. Dne 24.10.2015 16:05 napsal uživatel "Imants Cekusins" <imantc@gmail.com>:
I think its functor for each of ...
sorry, you are right.
well maybe it is possible with a non-ghc compiler? _______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners