Proposal: Functor and friends for the wrappers in Data.Monoid

Joachim Breitner mail at joachim-breitner.de
Sat Feb 21 19:44:10 UTC 2015


Hi,

Am Samstag, den 21.02.2015, 20:51 +0200 schrieb Oleg Grenrus:
> As Sean pointed out there is already a thread about this issue.
> I agree with Erik’s opinion, https://mail.haskell.org/pipermail/libraries/2014-December/024509.html :
> 
> > I'm +1 on the obviously useful instances (Data, Functor) and wouldn’t mind the others either, since I don't see any downsides.
> 
> Simple use case for Functor is e.g. fromIntegral <$> s

I have no doubts about Data, Functor, Foldable and Traversable. Data
types like "Sum" have a clear container-like behavior.

It’s Applicative and Monad that I’m unsure about.


Greetings,
Joachim
-- 
Joachim “nomeata” Breitner
  mail at joachim-breitner.dehttp://www.joachim-breitner.de/
  Jabber: nomeata at joachim-breitner.de  • GPG-Key: 0xF0FBF51F
  Debian Developer: nomeata at debian.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20150221/ca0547ce/attachment-0001.sig>


More information about the Libraries mailing list