webcrank-0.2: Webmachine inspired toolkit for building http applications and services.

Safe HaskellNone
LanguageHaskell98

Webcrank.Internal.DecisionCore

Documentation

data FlowChart m a where Source

Constructors

Decision :: String -> m (FlowChart m a) -> FlowChart m a 
Done :: m a -> FlowChart m a 

decision' :: Functor m => String -> m Bool -> FlowChart m a -> FlowChart m a -> FlowChart m a Source

done :: m a -> FlowChart m a Source

done' :: (Applicative m, Monad m) => a -> FlowChart m a Source

runFlowChart :: Monad m => FlowChart m a -> m a Source

bool :: a -> a -> Bool -> a Source

(<%%=) :: MonadState s m => Lens' s a -> (a -> m a) -> m () Source