Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
The strict variant of the standard Haskell pairs and the corresponding variants of the functions from Data.Tuple.
Note that unlike regular Haskell pairs, (x :!: _|_) = (_|_ :!: y) = _|_
Documentation
The type of strict pairs.
!a :!: !b infix 2 |
Instances
Assoc Pair Source # | |
Swap Pair Source # | |
Defined in Data.Strict.Tuple | |
Bifoldable Pair Source # | |
Bifunctor Pair Source # | |
Bitraversable Pair Source # | |
Defined in Data.Strict.Tuple bitraverse :: Applicative f => (a -> f c) -> (b -> f d) -> Pair a b -> f (Pair c d) # | |
Eq2 Pair Source # | |
Ord2 Pair Source # | |
Defined in Data.Strict.Tuple | |
Read2 Pair Source # |
|
Defined in Data.Strict.Tuple liftReadsPrec2 :: (Int -> ReadS a) -> ReadS [a] -> (Int -> ReadS b) -> ReadS [b] -> Int -> ReadS (Pair a b) # liftReadList2 :: (Int -> ReadS a) -> ReadS [a] -> (Int -> ReadS b) -> ReadS [b] -> ReadS [Pair a b] # liftReadPrec2 :: ReadPrec a -> ReadPrec [a] -> ReadPrec b -> ReadPrec [b] -> ReadPrec (Pair a b) # liftReadListPrec2 :: ReadPrec a -> ReadPrec [a] -> ReadPrec b -> ReadPrec [b] -> ReadPrec [Pair a b] # | |
Show2 Pair Source # | |
NFData2 Pair Source # | |
Defined in Data.Strict.Tuple | |
Hashable2 Pair Source # | |
Defined in Data.Strict.Tuple | |
Generic1 (Pair a :: Type -> Type) Source # | |
Foldable (Pair e) Source # | |
Defined in Data.Strict.Tuple fold :: Monoid m => Pair e m -> m # foldMap :: Monoid m => (a -> m) -> Pair e a -> m # foldMap' :: Monoid m => (a -> m) -> Pair e a -> m # foldr :: (a -> b -> b) -> b -> Pair e a -> b # foldr' :: (a -> b -> b) -> b -> Pair e a -> b # foldl :: (b -> a -> b) -> b -> Pair e a -> b # foldl' :: (b -> a -> b) -> b -> Pair e a -> b # foldr1 :: (a -> a -> a) -> Pair e a -> a # foldl1 :: (a -> a -> a) -> Pair e a -> a # elem :: Eq a => a -> Pair e a -> Bool # maximum :: Ord a => Pair e a -> a # minimum :: Ord a => Pair e a -> a # | |
Eq a => Eq1 (Pair a) Source # | |
Ord a => Ord1 (Pair a) Source # | |
Defined in Data.Strict.Tuple | |
Read a => Read1 (Pair a) Source # | |
Defined in Data.Strict.Tuple | |
Show a => Show1 (Pair a) Source # | |
Traversable (Pair e) Source # | |
Functor (Pair e) Source # | |
NFData a => NFData1 (Pair a) Source # | |
Defined in Data.Strict.Tuple | |
Hashable a => Hashable1 (Pair a) Source # | |
Defined in Data.Strict.Tuple | |
(Data a, Data b) => Data (Pair a b) Source # | |
Defined in Data.Strict.Tuple gfoldl :: (forall d b0. Data d => c (d -> b0) -> d -> c b0) -> (forall g. g -> c g) -> Pair a b -> c (Pair a b) # gunfold :: (forall b0 r. Data b0 => c (b0 -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (Pair a b) # toConstr :: Pair a b -> Constr # dataTypeOf :: Pair a b -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (Pair a b)) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (Pair a b)) # gmapT :: (forall b0. Data b0 => b0 -> b0) -> Pair a b -> Pair a b # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Pair a b -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Pair a b -> r # gmapQ :: (forall d. Data d => d -> u) -> Pair a b -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Pair a b -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Pair a b -> m (Pair a b) # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Pair a b -> m (Pair a b) # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Pair a b -> m (Pair a b) # | |
(Monoid a, Monoid b) => Monoid (Pair a b) Source # | |
(Semigroup a, Semigroup b) => Semigroup (Pair a b) Source # | |
(Bounded a, Bounded b) => Bounded (Pair a b) Source # | |
Generic (Pair a b) Source # | |
(Ix a, Ix b) => Ix (Pair a b) Source # | |
Defined in Data.Strict.Tuple | |
(Read a, Read b) => Read (Pair a b) Source # | |
(Show a, Show b) => Show (Pair a b) Source # | |
(Binary a, Binary b) => Binary (Pair a b) Source # | |
(NFData a, NFData b) => NFData (Pair a b) Source # | |
Defined in Data.Strict.Tuple | |
(Eq a, Eq b) => Eq (Pair a b) Source # | |
(Ord a, Ord b) => Ord (Pair a b) Source # | |
Defined in Data.Strict.Tuple | |
(Hashable a, Hashable b) => Hashable (Pair a b) Source # | |
Defined in Data.Strict.Tuple | |
Strict (a, b) (Pair a b) Source # | |
type Rep1 (Pair a :: Type -> Type) Source # | |
Defined in Data.Strict.Tuple type Rep1 (Pair a :: Type -> Type) = D1 ('MetaData "Pair" "Data.Strict.Tuple" "strict-0.5-5T7sRWGrQEO6S9uwM3LoD6" 'False) (C1 ('MetaCons ":!:" ('InfixI 'NotAssociative 2) 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 a) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) Par1)) | |
type Rep (Pair a b) Source # | |
Defined in Data.Strict.Tuple type Rep (Pair a b) = D1 ('MetaData "Pair" "Data.Strict.Tuple" "strict-0.5-5T7sRWGrQEO6S9uwM3LoD6" 'False) (C1 ('MetaCons ":!:" ('InfixI 'NotAssociative 2) 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 a) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 b))) |