bimaps- bijections with multiple implementations.

Safe HaskellNone




data Bimap l r Source

A bijection between values of type l and type r.


(Eq l, Eq r) => Eq (Bimap l r) 
(Eq l, Eq r, Read l, Read r, Hashable l, Hashable r) => Read (Bimap l r) 
(Show l, Show r) => Show (Bimap l r) 
Generic (Bimap l r) 
(ToJSON (HashMap l r), ToJSON (HashMap r l)) => ToJSON (Bimap l r) 
(FromJSON (HashMap l r), FromJSON (HashMap r l)) => FromJSON (Bimap l r) 
(Binary (HashMap l r), Binary (HashMap r l)) => Binary (Bimap l r) 
(Ord l, Ord r, Serialize (HashMap l r), Serialize (HashMap r l)) => Serialize (Bimap l r) 
(NFData l, NFData r) => NFData (Bimap l r) 
(Eq l, Eq r, Hashable l, Hashable r) => Bijection (Bimap l r) 
type Rep (Bimap l r) 
type ContL (Bimap l r) = HashMap l r 
type ContR (Bimap l r) = HashMap r l 
type ElemL (Bimap l r) = l 
type ElemR (Bimap l r) = r