mappings-0.3.0.0: Types which represent functions k -> v
Safe HaskellSafe-Inferred
LanguageGHC2021

Data.Bijection

Synopsis

Documentation

compatibleInsert :: Eq a => Int -> a -> IntMap a -> Maybe (IntMap a) Source #

data Bij Source #

Constructors

Bij 

Instances

Instances details
Eq Bij Source # 
Instance details

Defined in Data.Bijection

Methods

(==) :: Bij -> Bij -> Bool #

(/=) :: Bij -> Bij -> Bool #

Ord Bij Source # 
Instance details

Defined in Data.Bijection

Methods

compare :: Bij -> Bij -> Ordering #

(<) :: Bij -> Bij -> Bool #

(<=) :: Bij -> Bij -> Bool #

(>) :: Bij -> Bij -> Bool #

(>=) :: Bij -> Bij -> Bool #

max :: Bij -> Bij -> Bij #

min :: Bij -> Bij -> Bij #

pop :: Bij -> Maybe ((Int, Int), Bij) Source #

unsafeUnion :: Bij -> Bij -> Bij Source #

Don't check consistency, just take a union

unsafeDifference :: Bij -> Bij -> Bij Source #

Don't check consistency, just take a diff

newtype MaybeBij Source #

A newtype, just to get a partial monoidal structure representing consistent unions.

Constructors

MaybeBij 

Fields

Instances

Instances details
Monoid MaybeBij Source # 
Instance details

Defined in Data.Bijection

Semigroup MaybeBij Source # 
Instance details

Defined in Data.Bijection

Eq MaybeBij Source # 
Instance details

Defined in Data.Bijection

Ord MaybeBij Source # 
Instance details

Defined in Data.Bijection