Maintainer | Ralf Laemmel, Joost Visser |
---|---|
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell98 |
This module is part of StrategyLib
, a library of functional strategy
combinators, including combinators for generic traversal. This is the
top-level module of the library. One only needs to import this module to
use the entire library. Some base modules are exported as well because
they are commonly used.
- module Control.Monad
- module Control.Monad.Fix
- module Control.Monad.Trans
- newtype Identity a :: * -> * = Identity {
- runIdentity :: a
- type State s = StateT s Identity
- newtype StateT s (m :: * -> *) a :: * -> (* -> *) -> * -> * = StateT {
- runStateT :: s -> m (a, s)
- module Data.Monoid
- module Data.Generics.Strafunski.StrategyLib.MoreMonoids
- module Data.Generics.Strafunski.StrategyLib.StrategyPrelude
- module Data.Generics.Strafunski.StrategyLib.StrategyInfix
- module Data.Generics.Strafunski.StrategyLib.OverloadingTheme
- module Data.Generics.Strafunski.StrategyLib.TraversalTheme
- module Data.Generics.Strafunski.StrategyLib.FlowTheme
- module Data.Generics.Strafunski.StrategyLib.FixpointTheme
- module Data.Generics.Strafunski.StrategyLib.KeyholeTheme
- module Data.Generics.Strafunski.StrategyLib.NameTheme
- module Data.Generics.Strafunski.StrategyLib.PathTheme
- module Data.Generics.Strafunski.StrategyLib.EffectTheme
- module Data.Generics.Strafunski.StrategyLib.ContainerTheme
- module Data.Generics.Strafunski.StrategyLib.RefactoringTheme
- module Data.Generics.Strafunski.StrategyLib.MetricsTheme
- module Data.Generics.Strafunski.StrategyLib.ChaseImports
Documentation
module Control.Monad
module Control.Monad.Fix
module Control.Monad.Trans
newtype Identity a :: * -> * #
Identity functor and monad. (a non-strict monad)
Since: 4.8.0.0
Identity | |
|
Monad Identity | Since: 4.8.0.0 |
Functor Identity | Since: 4.8.0.0 |
MonadFix Identity | Since: 4.8.0.0 |
Applicative Identity | Since: 4.8.0.0 |
Foldable Identity | Since: 4.8.0.0 |
Traversable Identity | |
Eq1 Identity | Since: 4.9.0.0 |
Ord1 Identity | Since: 4.9.0.0 |
Read1 Identity | Since: 4.9.0.0 |
Show1 Identity | Since: 4.9.0.0 |
Bounded a => Bounded (Identity a) | |
Enum a => Enum (Identity a) | |
Eq a => Eq (Identity a) | |
Floating a => Floating (Identity a) | |
Fractional a => Fractional (Identity a) | |
Integral a => Integral (Identity a) | |
Data a => Data (Identity a) | Since: 4.9.0.0 |
Num a => Num (Identity a) | |
Ord a => Ord (Identity a) | |
Read a => Read (Identity a) | This instance would be equivalent to the derived instances of the
Since: 4.8.0.0 |
Real a => Real (Identity a) | |
RealFloat a => RealFloat (Identity a) | |
RealFrac a => RealFrac (Identity a) | |
Show a => Show (Identity a) | This instance would be equivalent to the derived instances of the
Since: 4.8.0.0 |
Ix a => Ix (Identity a) | |
Generic (Identity a) | |
Monoid a => Monoid (Identity a) | |
Storable a => Storable (Identity a) | |
Bits a => Bits (Identity a) | |
FiniteBits a => FiniteBits (Identity a) | |
Generic1 * Identity | |
MonadRun (StateAlg s) (State s) Source # | Running the |
MonadRun ((->) LiftedRep LiftedRep) Identity Source # | Running the |
type Rep (Identity a) | |
type Rep1 * Identity | |
type State s = StateT s Identity #
A state monad parameterized by the type s
of the state to carry.
The return
function leaves the state unchanged, while >>=
uses
the final state of the first computation as the initial state of
the second.
newtype StateT s (m :: * -> *) a :: * -> (* -> *) -> * -> * #
A state transformer monad parameterized by:
s
- The state.m
- The inner monad.
The return
function leaves the state unchanged, while >>=
uses
the final state of the first computation as the initial state of
the second.
MonadTrans (StateT s) | |
MonadUnTrans (StateAlg s) (StateT s) Source # | Unlifting the state monad transformer |
MonadRun (StateAlg s) (State s) Source # | Running the |
Monad m => Monad (StateT s m) | |
Functor m => Functor (StateT s m) | |
MonadFix m => MonadFix (StateT s m) | |
MonadFail m => MonadFail (StateT s m) | |
(Functor m, Monad m) => Applicative (StateT s m) | |
MonadIO m => MonadIO (StateT s m) | |
(Functor m, MonadPlus m) => Alternative (StateT s m) | |
MonadPlus m => MonadPlus (StateT s m) | |
module Data.Monoid