| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Fcf.Data.Common
Description
Common data types: tuples, Either, Maybe.
Synopsis
- data Uncurry (d :: a -> b -> Exp c) (e :: (a, b)) (f :: c)
- data Fst (c :: (a, b)) (d :: a)
- data Snd (c :: (a, b)) (d :: b)
- data ((a :: b -> Exp c) *** (d :: b' -> Exp c')) (e :: (b, b')) (f :: (c, c'))
- data UnEither (d :: a -> Exp c) (e :: b -> Exp c) (f :: Either a b) (g :: c)
- data IsLeft (c :: Either a b) (d :: Bool)
- data IsRight (c :: Either a b) (d :: Bool)
- data UnMaybe (c :: Exp b) (d :: a -> Exp b) (e :: Maybe a) (f :: b)
- data FromMaybe (a :: k) (b :: Maybe k) (c :: k)
- data IsNothing (b :: Maybe a) (c :: Bool)
- data IsJust (b :: Maybe a) (c :: Bool)
Pairs
data ((a :: b -> Exp c) *** (d :: b' -> Exp c')) (e :: (b, b')) (f :: (c, c')) infixr 3 Source #
Specialization of Bimap for pairs.
Either
data UnEither (d :: a -> Exp c) (e :: b -> Exp c) (f :: Either a b) (g :: c) Source #
Instances
| type Eval (UnEither f g ('Left x :: Either a1 b) :: a2 -> Type) Source # | |
Defined in Fcf.Data.Common | |
| type Eval (UnEither f g ('Right y :: Either a1 b) :: a2 -> Type) Source # | |
Defined in Fcf.Data.Common | |
data IsLeft (c :: Either a b) (d :: Bool) Source #
Instances
| type Eval (IsLeft ('Left _a :: Either a b) :: Bool -> Type) Source # | |
Defined in Fcf.Data.Common | |
| type Eval (IsLeft ('Right _a :: Either a b) :: Bool -> Type) Source # | |
Defined in Fcf.Data.Common | |
data IsRight (c :: Either a b) (d :: Bool) Source #
Instances
| type Eval (IsRight ('Left _a :: Either a b) :: Bool -> Type) Source # | |
Defined in Fcf.Data.Common | |
| type Eval (IsRight ('Right _a :: Either a b) :: Bool -> Type) Source # | |
Defined in Fcf.Data.Common | |
Maybe
data UnMaybe (c :: Exp b) (d :: a -> Exp b) (e :: Maybe a) (f :: b) Source #
Instances
| type Eval (UnMaybe y f ('Just x) :: a1 -> Type) Source # | |
Defined in Fcf.Data.Common | |
| type Eval (UnMaybe y f ('Nothing :: Maybe a2) :: a1 -> Type) Source # | |
Defined in Fcf.Data.Common | |
data FromMaybe (a :: k) (b :: Maybe k) (c :: k) Source #
Instances
| type Eval (FromMaybe _a ('Just b) :: a -> Type) Source # | |
Defined in Fcf.Data.Common | |
| type Eval (FromMaybe a2 ('Nothing :: Maybe a1) :: a1 -> Type) Source # | |
Defined in Fcf.Data.Common | |
data IsNothing (b :: Maybe a) (c :: Bool) Source #
Instances
| type Eval (IsNothing ('Just _a) :: Bool -> Type) Source # | |
Defined in Fcf.Data.Common | |
| type Eval (IsNothing ('Nothing :: Maybe a) :: Bool -> Type) Source # | |
Defined in Fcf.Data.Common | |