int-like-0.1.4: Newtype wrappers over IntSet and IntMap
Safe HaskellSafe-Inferred
LanguageHaskell2010

IntLike.Equiv

Documentation

data IntLikeEquiv k v Source #

Instances

Instances details
Generic (IntLikeEquiv k v) Source # 
Instance details

Defined in IntLike.Equiv

Associated Types

type Rep (IntLikeEquiv k v) :: Type -> Type #

Methods

from :: IntLikeEquiv k v -> Rep (IntLikeEquiv k v) x #

to :: Rep (IntLikeEquiv k v) x -> IntLikeEquiv k v #

Show k => Show (IntLikeEquiv k v) Source # 
Instance details

Defined in IntLike.Equiv

NFData k => NFData (IntLikeEquiv k v) Source # 
Instance details

Defined in IntLike.Equiv

Methods

rnf :: IntLikeEquiv k v -> () #

Eq k => Eq (IntLikeEquiv k v) Source # 
Instance details

Defined in IntLike.Equiv

Methods

(==) :: IntLikeEquiv k v -> IntLikeEquiv k v -> Bool #

(/=) :: IntLikeEquiv k v -> IntLikeEquiv k v -> Bool #

Ord k => Ord (IntLikeEquiv k v) Source # 
Instance details

Defined in IntLike.Equiv

type Rep (IntLikeEquiv k v) Source # 
Instance details

Defined in IntLike.Equiv

type Rep (IntLikeEquiv k v) = D1 ('MetaData "IntLikeEquiv" "IntLike.Equiv" "int-like-0.1.4-4FpNwewOR00ADWe5qZEjL1" 'False) (C1 ('MetaCons "IntLikeEquiv" 'PrefixI 'True) (S1 ('MetaSel ('Just "fwdView") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (IntLikeMultiMap k v)) :*: S1 ('MetaSel ('Just "bwdView") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (IntLikeMap v k))))

insert :: (Coercible k Int, Coercible v Int) => k -> v -> IntLikeEquiv k v -> Either k (IntLikeEquiv k v) Source #

member :: (Eq k, Coercible v Int) => k -> v -> IntLikeEquiv k v -> Bool Source #