Safe Haskell | None |
---|
Thread a state token through calls to given functions.
ASSUMPTIONS: * Program is a-normalized and fully named.
- class Thread c where
- data Config a n = Config {
- configCheckConfig :: Config n
- configThreadMe :: n -> Type n -> Maybe (Type n)
- configTokenType :: Type n
- configVoidType :: Type n
- configWrapResultType :: Type n -> Type n
- configWrapResultExp :: Exp (AnTEC a n) n -> Exp (AnTEC a n) n -> Exp a n
- configThreadPat :: n -> Maybe (Bind n -> [Bind n] -> Pat n)
- injectStateType :: Eq n => Config a n -> Type n -> Type n
Documentation
Class of things that can have a state token threaded through them.
Configuration for the Thread transform.
Config | |
|