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

GHC.HsToCore.GuardedRHSs

Documentation

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

dsGRHSs Source #

Arguments

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

Guarded RHSs

-> Type

Type of RHS

-> NonEmpty Nablas

Refined pattern match checking models, one for the pattern part and one for each GRHS.

-> DsM (MatchResult CoreExpr) 

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