<div dir="ltr">For the purpose of learning the material, it might be easiest to just write:<div><br></div><div>class MyFunctor f where</div><div>  myFmap :: (a -> b) -> f a -> f b</div><div><br></div><div>and then create instances of that, instead.</div><div><br></div><div>This way, you won't have any conflicts with existing instances.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Oct 24, 2015 at 10:16 AM, Petr Vápenka <span dir="ltr"><<a href="mailto:petr.vapenka@gmail.com" target="_blank">petr.vapenka@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">You can try NoImplicitPrelude language extension (this may not work, too) or use newtype wrappers or normal data types with the same shape.</p>
<div class="gmail_quote">Dne 24.10.2015 16:05 napsal uživatel "Imants Cekusins" <<a href="mailto:imantc@gmail.com" target="_blank">imantc@gmail.com</a>>:<div><div class="h5"><br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> I think its functor for each of ...<br>
<br>
sorry, you are right.<br>
<br>
well maybe it is possible with a non-ghc compiler?<br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
</blockquote></div></div></div>
<br>_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
<br></blockquote></div><br></div>