Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data SimplM result
- initSmpl :: DynFlags -> RuleEnv -> (FamInstEnv, FamInstEnv) -> UniqSupply -> Int -> SimplM a -> IO (a, SimplCount)
- traceSmpl :: String -> SDoc -> SimplM ()
- getSimplRules :: SimplM RuleEnv
- getFamEnvs :: SimplM (FamInstEnv, FamInstEnv)
- class Monad m => MonadUnique m where
- getUniqueSupplyM :: m UniqSupply
- getUniqueM :: m Unique
- getUniquesM :: m [Unique]
- newId :: FastString -> Type -> SimplM Id
- newJoinId :: [Var] -> Type -> SimplM Id
- data SimplCount
- tick :: Tick -> SimplM ()
- freeTick :: Tick -> SimplM ()
- checkedTick :: Tick -> SimplM ()
- getSimplCount :: SimplM SimplCount
- zeroSimplCount :: DynFlags -> SimplCount
- pprSimplCount :: SimplCount -> SDoc
- plusSimplCount :: SimplCount -> SimplCount -> SimplCount
- isZeroSimplCount :: SimplCount -> Bool
Documentation
Instances
Monad SimplM Source # | |
Functor SimplM Source # | |
Applicative SimplM Source # | |
MonadIO SimplM Source # | |
Defined in SimplMonad | |
MonadUnique SimplM Source # | |
Defined in SimplMonad | |
HasDynFlags SimplM Source # | |
Defined in SimplMonad |
initSmpl :: DynFlags -> RuleEnv -> (FamInstEnv, FamInstEnv) -> UniqSupply -> Int -> SimplM a -> IO (a, SimplCount) Source #
getFamEnvs :: SimplM (FamInstEnv, FamInstEnv) Source #
class Monad m => MonadUnique m where Source #
A monad for generating unique identifiers
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 Source # | |
Defined in UniqSupply | |
MonadUnique CoreM Source # | |
Defined in CoreMonad | |
MonadUnique LlvmM Source # | |
Defined in LlvmCodeGen.Base | |
MonadUnique FCode Source # | |
Defined in StgCmmMonad | |
MonadUnique CmmParse Source # | |
Defined in StgCmmExtCode | |
MonadUnique SimplM Source # | |
Defined in SimplMonad | |
MonadUnique TcS Source # | |
Defined in TcSMonad getUniqueSupplyM :: TcS UniqSupply Source # getUniqueM :: TcS Unique Source # getUniquesM :: TcS [Unique] Source # | |
MonadUnique NatM Source # | |
Defined in NCGMonad getUniqueSupplyM :: NatM UniqSupply Source # getUniqueM :: NatM Unique Source # getUniquesM :: NatM [Unique] Source # | |
MonadUnique (IOEnv (Env gbl lcl)) Source # | |
Defined in TcRnMonad getUniqueSupplyM :: IOEnv (Env gbl lcl) UniqSupply Source # |
data SimplCount Source #
checkedTick :: Tick -> SimplM () Source #
zeroSimplCount :: DynFlags -> SimplCount Source #
pprSimplCount :: SimplCount -> SDoc Source #
plusSimplCount :: SimplCount -> SimplCount -> SimplCount Source #
isZeroSimplCount :: SimplCount -> Bool Source #