ghc-7.8.0.20140228: The GHC API

Safe HaskellNone
LanguageHaskell98

SimplMonad

Synopsis

Documentation

class Monad m => MonadUnique m where Source

A monad for generating unique identifiers

Methods

getUniqueSupplyM :: m UniqSupply Source

Get a new UniqueSupply

getUniqueM :: m Unique Source

Get a new unique identifier

getUniquesM :: m [Unique] Source

Get an infinite list of new unique identifiers