Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
GHC.Core.Opt.ConstantFold
Synopsis
- primOpRules :: Name -> PrimOp -> Maybe CoreRule
- builtinRules :: EnableBignumRules -> [CoreRule]
- caseRules :: Platform -> CoreExpr -> Maybe (CoreExpr, AltCon -> Maybe AltCon, Id -> CoreExpr)
- newtype EnableBignumRules = EnableBignumRules Bool
Documentation
builtinRules :: EnableBignumRules -> [CoreRule] Source #
caseRules :: Platform -> CoreExpr -> Maybe (CoreExpr, AltCon -> Maybe AltCon, Id -> CoreExpr) Source #
Match the scrutinee of a case and potentially return a new scrutinee and a function to apply to each literal alternative.
newtype EnableBignumRules Source #
Constructors
EnableBignumRules Bool |