• duairc's avatar
    Added missing instances for Identity and Const (#11210) · 2dff6c18
    duairc authored
    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
Const.hs 2.12 KB