[GHC] #11210: Missing instances for Identity and Const
GHC
ghc-devs at haskell.org
Sun Dec 13 10:53:36 UTC 2015
#11210: Missing instances for Identity and Const
-------------------------------------+-------------------------------------
Reporter: duairc | Owner:
Type: feature | Status: new
request |
Priority: normal | Milestone:
Component: | Version: 7.11
libraries/base |
Keywords: g | Operating System: Unknown/Multiple
Architecture: | Type of failure: None/Unknown
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
The following instances are all permissible yet are not defined. They can
all be derived with {{{GeneralizedNewtypeDeriving}}}. It would be useful
for me if they were defined in {{{base}}}. These should probably also go
into {{{base-orphans}}} and {{{transformers}}} (for versions of {{{base}}}
before {{{Identity}}} was moved there).
{{{#!hs
instance Bounded a => Bounded (Const a b)
instance Enum a => Bounded (Const a b)
instance Ix a => Bounded (Const a b)
instance Semigroup a => Semigroup (Const a b)
instance Bounded a => Bounded (Identity a)
instance Enum a => Bounded (Identity a)
instance Ix a => Bounded (Identity a)
instance Semigroup a => Semigroup (Identity a)
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11210>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list