Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Control.Monad.State.Profunctor.IxState
Synopsis
- newtype IxStateT f t s a = IxStateT (s -> f (a, t))
- type IxState t s a = IxStateT Identity t s a
- ixState :: Iso (IxState t s a) (IxState t' s' a') (s -> (a, t)) (s' -> (a', t'))
- swap :: (Functor f, Functor f') => Iso (IxStateT f t s a) (IxStateT f' t' s' a') (IxStateT f a s t) (IxStateT f' a' s' t')
- newtype Identity a = Identity {
- runIdentity :: a
- class Profunctor p => Strong (p :: Type -> Type -> Type) where
- class IxFunctor f where
- ($.$) :: (a -> b) -> f j k a -> f j k b
- class IxFunctor f => IxApply f where
- (<*.*>) :: f j k (a -> b) -> f i j a -> f i k b
- class IxApply f => IxApplicative f where
- ipure :: a -> f i i a
- class IxApply f => IxBind f where
- class (IxApplicative f, IxBind f) => IxMonad f
- class IxFunctor f => IxAlt f where
- (<|.|>) :: f i j a -> f i j a -> f i j a
- class IxAlt f => IxAlternative f where
- iempty :: f i j a
- class IxMonad f => IxMonadState f where
- class IxMonadFix f where
- imfix :: (a -> f t s a) -> f t s a
- class IxMonadCont f where
- icallCC :: ((a -> f t r b) -> f r s a) -> f r s a
- class IxBindTrans g where
- class IxMonadTrans g where
Documentation
newtype IxStateT f t s a Source #
Constructors
IxStateT (s -> f (a, t)) |
Instances
swap :: (Functor f, Functor f') => Iso (IxStateT f t s a) (IxStateT f' t' s' a') (IxStateT f a s t) (IxStateT f' a' s' t') Source #
Identity functor and monad. (a non-strict monad)
Since: base-4.8.0.0
Constructors
Identity | |
Fields
|
Instances
class Profunctor p => Strong (p :: Type -> Type -> Type) where #
Generalizing Star
of a strong Functor
Note: Every Functor
in Haskell is strong with respect to (,)
.
This describes profunctor strength with respect to the product structure of Hask.
Methods
Instances
class IxApply f => IxApplicative f where Source #
Instances
Monad f => IxApplicative (IxStateT f) Source # | |
Defined in Control.Monad.State.Profunctor.IxState |
class (IxApplicative f, IxBind f) => IxMonad f Source #
class IxAlt f => IxAlternative f where Source #
Instances
(Alt f, Alternative f) => IxAlternative (IxStateT f) Source # | |
Defined in Control.Monad.State.Profunctor.IxState |
class IxMonad f => IxMonadState f where Source #
Instances
Monad f => IxMonadState (IxStateT f) Source # | |
class IxMonadFix f where Source #
class IxMonadCont f where Source #
class IxBindTrans g where Source #