purescript-0.13.0: PureScript Programming Language Compiler

Safe HaskellNone
LanguageHaskell2010

Control.Monad.Supply.Class

Description

A class for monads supporting a supply of fresh names

Documentation

class Monad m => MonadSupply m where Source #

Minimal complete definition

Nothing

Methods

fresh :: m Integer Source #

peek :: m Integer Source #

fresh :: (MonadTrans t, MonadSupply n, m ~ t n) => m Integer Source #

peek :: (MonadTrans t, MonadSupply n, m ~ t n) => m Integer Source #

Instances
Monad m => MonadSupply (SupplyT m) Source # 
Instance details

Defined in Control.Monad.Supply.Class

(Monoid w, MonadSupply m) => MonadSupply (WriterT w m) Source # 
Instance details

Defined in Control.Monad.Supply.Class

MonadSupply m => MonadSupply (StateT s m) Source # 
Instance details

Defined in Control.Monad.Supply.Class