ghc-8.4.0.20171214: The GHC API

Safe HaskellNone
LanguageHaskell2010

PrelRules

Synopsis

Documentation

caseRules :: DynFlags -> CoreExpr -> Maybe (CoreExpr, AltCon -> 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.