Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data SimplM result
- initSmpl :: Logger -> DynFlags -> RuleEnv -> (FamInstEnv, FamInstEnv) -> Int -> SimplM a -> IO (a, SimplCount)
- traceSmpl :: String -> SDoc -> SimplM ()
- getSimplRules :: SimplM RuleEnv
- getFamEnvs :: SimplM (FamInstEnv, FamInstEnv)
- getOptCoercionOpts :: SimplM OptCoercionOpts
- class Monad m => MonadUnique m where
- getUniqueSupplyM :: m UniqSupply
- getUniqueM :: m Unique
- getUniquesM :: m [Unique]
- newId :: FastString -> Mult -> 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
MonadIO SimplM # | |
Applicative SimplM # | |
Functor SimplM # | |
Monad SimplM # | |
HasDynFlags SimplM # | |
Defined in GHC.Core.Opt.Simplify.Monad | |
MonadUnique SimplM # | |
Defined in GHC.Core.Opt.Simplify.Monad | |
HasLogger SimplM # | |
initSmpl :: Logger -> DynFlags -> RuleEnv -> (FamInstEnv, FamInstEnv) -> 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 NatM # | |
Defined in GHC.CmmToAsm.Monad getUniqueSupplyM :: NatM UniqSupply Source # getUniqueM :: NatM Unique Source # getUniquesM :: NatM [Unique] Source # | |
MonadUnique LlvmM # | |
Defined in GHC.CmmToLlvm.Base | |
MonadUnique CoreM # | |
Defined in GHC.Core.Opt.Monad | |
MonadUnique SimplM # | |
Defined in GHC.Core.Opt.Simplify.Monad | |
MonadUnique LiftM # | |
Defined in GHC.Stg.Lift.Monad | |
MonadUnique CmmParse # | |
Defined in GHC.StgToCmm.ExtCode | |
MonadUnique FCode # | |
Defined in GHC.StgToCmm.Monad | |
MonadUnique TcS # | |
Defined in GHC.Tc.Solver.Monad getUniqueSupplyM :: TcS UniqSupply Source # getUniqueM :: TcS Unique Source # getUniquesM :: TcS [Unique] Source # | |
MonadUnique UniqSM # | |
Defined in GHC.Types.Unique.Supply | |
MonadUnique (IOEnv (Env gbl lcl)) # | |
Defined in GHC.Tc.Utils.Monad 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 #