Copyright | (c) 2023 Yamada Ryo |
---|---|
License | MPL-2.0 (see the file LICENSE) |
Maintainer | ymdfield@outlook.jp |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | GHC2021 |
Interpreter for the State
effect class.
Synopsis
- interpretState :: forall s es m a. Monad m => s -> Fre (StateI s ': es) m a -> Fre es m (s, a)
- evalState :: forall s es m a. Monad m => s -> Fre (StateI s ': es) m a -> Fre es m a
- execState :: forall s es m a. Monad m => s -> Fre (StateI s ': es) m a -> Fre es m s
- interpretStateT :: forall s es m. Monad m => Fre (StateI s ': es) m ~> StateT s (Fre es m)