Proposal: Add common instances for Control.Applicative.Const

Edward Kmett ekmett at gmail.com
Mon Oct 14 23:43:31 UTC 2013


Alternately we could just hand-roll the instances so it doesn't change
whether it gets imported if the user writes

import Control.Applicative (Const(..))

but I agree with simplifying the presentation.



On Mon, Oct 14, 2013 at 5:03 PM, Ross Paterson <R.Paterson at city.ac.uk>wrote:

> On Mon, Oct 14, 2013 at 09:33:38AM -0700, Eric Mertens wrote:
> > It would be handy for Control.Applicative.Const to have the various
> derivable
> > instances (Eq, Ord, Read, Show).
> >
> > In particular Read and Show would make debugging easier.
>
> I'd suggest redefining getConst as a function rather than a field to
> make the derived Read and Show instances simpler.  Ditto WrappedMonad.
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://www.haskell.org/mailman/listinfo/libraries
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20131014/9ee39ee8/attachment.html>


More information about the Libraries mailing list