PrelRules

ghc-8.4.4: The GHC API

Safe Haskell | None
Language | Haskell2010

PrelRules

Synopsis

- primOpRules :: Name -> PrimOp -> Maybe CoreRule
- builtinRules :: [CoreRule]
- caseRules :: DynFlags -> CoreExpr -> Maybe (CoreExpr, AltCon -> Maybe AltCon, Id -> CoreExpr)

# Documentation

primOpRules :: Name -> PrimOp -> Maybe CoreRule #

builtinRules :: [CoreRule] #

caseRules :: DynFlags -> CoreExpr -> Maybe (CoreExpr, AltCon -> Maybe AltCon, Id -> CoreExpr) #

Match the scrutinee of a case and potentially return a new scrutinee and a function to apply to each literal alternative.