Safe Haskell | None |
---|---|
Language | Haskell2010 |
A class for monads supporting a supply of fresh names
Documentation
class Monad m => MonadSupply m where Source #
Nothing
default fresh :: (MonadTrans t, MonadSupply n, m ~ t n) => m Integer Source #
default peek :: (MonadTrans t, MonadSupply n, m ~ t n) => m Integer Source #
Instances
Monad m => MonadSupply (SupplyT m) Source # | |
MonadSupply m => MonadSupply (StateT s m) Source # | |
(Monoid w, MonadSupply m) => MonadSupply (WriterT w m) Source # | |
freshName :: MonadSupply m => m Text Source #