#11210: Missing instances for Identity and Const -------------------------------------+------------------------------------- Reporter: duairc | Owner: Type: feature request | Status: patch Priority: normal | Milestone: Component: libraries/base | Version: 7.11 Resolution: | Keywords: g Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D1626 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Ben Gamari <ben@…>): In [changeset:"2dff6c184f97fa564c72c73374378a65e12984d8/ghc" 2dff6c18/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="2dff6c184f97fa564c72c73374378a65e12984d8" Added missing instances for Identity and Const (#11210) The following instances are added instance Bounded a => Bounded (Const a b) instance Enum a => Enum (Const a b) instance Ix a => Ix (Const a b) instance Storable a => Storable (Const a b) instance Bounded a => Bounded (Identity a) instance Enum a => Enum (Identity a) instance Ix a => Ix (Identity a) instance Semigroup a => Semigroup (Identity a) instance Storable a => Storable (Identity a) Reviewers: ekmett, RyanGlScott, rwbarton, hvr, austin, bgamari Reviewed By: RyanGlScott, hvr Subscribers: rwbarton, RyanGlScott, thomie Differential Revision: https://phabricator.haskell.org/D1626 GHC Trac Issues: #11210 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11210#comment:6> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler