Traversable Instance of the Constant type - Think I got it

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Traversable Instance of the Constant type - Think I got it

Atrudyjane
Got confused thinking that the pure function called by Constant's traversable instance was the pure defined in Constant's applicative, which just returns Constant. Was explained to me that the type is inferred by the 'f' passed to it. If you read my OP, thank you.

Regards,
Andrea


Sent with ProtonMail Secure Email.


_______________________________________________
Beginners mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
Loading...