ghc-7.8.2: The GHC API

Safe Haskell | None
Language | Haskell98

MatchLit

# Documentation

dsLit :: HsLit -> DsM CoreExpr

dsOverLit :: HsOverLit Id -> DsM CoreExpr

hsLitKey :: DynFlags -> HsLit -> Literal

hsOverLitKey :: OutputableBndr a => HsOverLit a -> Bool -> Literal

tidyLitPat :: HsLit -> Pat Id

tidyNPat :: (HsLit -> Pat Id) -> HsOverLit Id -> Maybe (SyntaxExpr Id) -> SyntaxExpr Id -> Pat Id

matchLiterals :: [Id] -> Type -> [[EquationInfo]] -> DsM MatchResult

matchNPlusKPats :: [Id] -> Type -> [EquationInfo] -> DsM MatchResult

matchNPats :: [Id] -> Type -> [EquationInfo] -> DsM MatchResult

warnAboutIdentities :: DynFlags -> CoreExpr -> Type -> DsM ()

warnAboutEmptyEnumerations :: DynFlags -> LHsExpr Id -> Maybe (LHsExpr Id) -> LHsExpr Id -> DsM ()