Safe Haskell | None |
---|---|
Language | Haskell98 |
- data SimplM result
- initSmpl :: DynFlags -> RuleBase -> (FamInstEnv, FamInstEnv) -> UniqSupply -> Int -> SimplM a -> IO (a, SimplCount)
- traceSmpl :: String -> SDoc -> SimplM ()
- getSimplRules :: SimplM RuleBase
- getFamEnvs :: SimplM (FamInstEnv, FamInstEnv)
- class Monad m => MonadUnique m where
- getUniqueSupplyM :: m UniqSupply
- getUniqueM :: m Unique
- getUniquesM :: m [Unique]
- newId :: FastString -> 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
initSmpl :: DynFlags -> RuleBase -> (FamInstEnv, FamInstEnv) -> UniqSupply -> Int -> SimplM a -> IO (a, SimplCount) 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
MonadUnique UniqSM | |
MonadUnique TcS | |
MonadUnique CoreM | |
MonadUnique SimplM | |
MonadUnique (IOEnv (Env gbl lcl)) |
data SimplCount Source
checkedTick :: Tick -> SimplM () Source
pprSimplCount :: SimplCount -> SDoc Source
plusSimplCount :: SimplCount -> SimplCount -> SimplCount Source
isZeroSimplCount :: SimplCount -> Bool Source