ghc-8.4.0.20180204: The GHC API

Safe HaskellNone
LanguageHaskell2010

SimplMonad

Synopsis

Documentation

data SimplM result Source #

Instances
Monad SimplM # 
Instance details

Methods

(>>=) :: SimplM a -> (a -> SimplM b) -> SimplM b Source #

(>>) :: SimplM a -> SimplM b -> SimplM b Source #

return :: a -> SimplM a Source #

fail :: String -> SimplM a Source #

Functor SimplM # 
Instance details

Methods

fmap :: (a -> b) -> SimplM a -> SimplM b Source #

(<$) :: a -> SimplM b -> SimplM a Source #

Applicative SimplM # 
Instance details

Methods

pure :: a -> SimplM a Source #

(<*>) :: SimplM (a -> b) -> SimplM a -> SimplM b Source #

liftA2 :: (a -> b -> c) -> SimplM a -> SimplM b -> SimplM c Source #

(*>) :: SimplM a -> SimplM b -> SimplM b Source #

(<*) :: SimplM a -> SimplM b -> SimplM a Source #

MonadIO SimplM # 
Instance details

Methods

liftIO :: IO a -> SimplM a Source #

MonadUnique SimplM # 
Instance details
HasDynFlags SimplM # 
Instance details

class Monad m => MonadUnique m where Source #

A monad for generating unique identifiers

Minimal complete definition

getUniqueSupplyM

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

Instances
MonadUnique UniqSM # 
Instance details
MonadUnique LlvmM # 
Instance details
MonadUnique FCode # 
Instance details
MonadUnique CmmParse # 
Instance details
MonadUnique CoreM # 
Instance details
MonadUnique SimplM # 
Instance details
MonadUnique TcS # 
Instance details
MonadUnique NatM # 
Instance details
MonadUnique (IOEnv (Env gbl lcl)) # 
Instance details