ghc-7.0.1: The GHC API

SimplMonad

Synopsis

Documentation

data SimplM result Source

class Monad m => MonadUnique m whereSource

A monad for generating unique identifiers

Methods

getUniqueSupplyM :: m UniqSupplySource

Get a new UniqueSupply

getUniqueM :: m UniqueSource

Get a new unique identifier

getUniquesM :: m [Unique]Source

Get an infinite list of new unique identifiers

intSwitchSet :: (switch -> SwitchResult) -> (Int -> switch) -> Maybe IntSource

switchIsOn :: (switch -> SwitchResult) -> switch -> BoolSource