[Haskell-cafe] More instances for Identity?

Niklas Hambüchen mail at nh2.me
Wed Jun 17 15:43:44 UTC 2015


Clearly I'm behind the times, as just brought to my attention by Michael
Snoyman, this is already done in `base` of GHC 7.10:

http://downloads.haskell.org/~ghc/7.10.1/docs/html/libraries/base/Data-Functor-Identity.html

Cheers!

On 17/06/15 17:37, Niklas Hambüchen wrote:
> Hi,
> 
> I just noticed that Data.Functor.Identity [1] lacks many useful
> instances like Eq, Ord, Show ... etc.
> 
> Is there a reason for this?
> 
> Otherwise, shouldn't we make a proposal for it?
> 
> In my opinion, if the seven-tuple has an instance, then Identity
> deserves it as well.
> 
> Niklas
> 
> 
> [1]:
> https://downloads.haskell.org/~ghc/7.8.3/docs/html/libraries/transformers-0.3.0.0/Data-Functor-Identity.html
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> 


More information about the Haskell-Cafe mailing list