ghc-lib-9.0.1.20210207: The GHC API, decoupled from GHC versions
Safe HaskellNone
LanguageHaskell2010

GHC.HsToCore.GuardedRHSs

Documentation

dsGuarded :: GRHSs GhcTc (LHsExpr GhcTc) -> Type -> Maybe (NonEmpty Deltas) -> DsM CoreExpr Source #

dsGRHSs Source #

Arguments

:: HsMatchContext GhcRn 
-> GRHSs GhcTc (LHsExpr GhcTc)

Guarded RHSs

-> Type

Type of RHS

-> Maybe (NonEmpty Deltas)

Refined pattern match checking models, one for each GRHS. Defaults to initDeltas if Nothing.

-> DsM (MatchResult CoreExpr) 

isTrueLHsExpr :: LHsExpr GhcTc -> Maybe (CoreExpr -> DsM CoreExpr) Source #