ghc-lib-parser-9.2.8.20230729: The GHC API, decoupled from GHC versions
Safe HaskellSafe-Inferred
LanguageHaskell2010

GHC.Core.Opt.ConstantFold

Description

Constant Folder

Synopsis

Documentation

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.