Safe Haskell | None |
---|---|
Language | Haskell98 |
Utility functions for constructing Core syntax, principally for desugaring
Documentation
firstPat :: EquationInfo -> Pat IdSource
shiftEqns :: [EquationInfo] -> [EquationInfo]Source
data MatchResultSource
MkCaseAlt | |
|
adjustMatchResultDs :: (CoreExpr -> DsM CoreExpr) -> MatchResult -> MatchResultSource
mkViewMatchResult :: Id -> CoreExpr -> Id -> MatchResult -> MatchResultSource
mkEvalMatchResult :: Id -> Type -> MatchResult -> MatchResultSource
mkCoPrimCaseMatchResult :: Id -> Type -> [(Literal, MatchResult)] -> MatchResultSource
mkCoAlgCaseMatchResult :: DynFlags -> Id -> Type -> [CaseAlt DataCon] -> MatchResultSource
mkCoSynCaseMatchResult :: Id -> Type -> CaseAlt PatSyn -> MatchResultSource
mkCoreAppDs :: CoreExpr -> CoreExpr -> CoreExprSource
mkCoreAppsDs :: CoreExpr -> [CoreExpr] -> CoreExprSource
mkLHsVarPatTup :: [Id] -> LPat IdSource
mkBigLHsVarTup :: [Id] -> LHsExpr IdSource
mkBigLHsVarPatTup :: [Id] -> LPat IdSource