[Haskell-beginners] Ignore in import

Ryan Trinkle ryan.trinkle at gmail.com
Sat Oct 24 15:25:16 UTC 2015


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 at 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 at 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 at haskell.org
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>>
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20151024/5e115d67/attachment.html>


More information about the Beginners mailing list