ghc-8.2.2: The GHC API

Safe Haskell | None
Language | Haskell2010

MatchLit

# Documentation

dsLit :: HsLit -> DsM CoreExpr #

dsOverLit :: HsOverLit Id -> DsM CoreExpr #

dsOverLit' :: DynFlags -> HsOverLit Id -> DsM CoreExpr #

hsLitKey :: DynFlags -> HsLit -> Literal #

tidyLitPat :: HsLit -> Pat Id #

tidyNPat :: (HsLit -> Pat Id) -> HsOverLit Id -> Maybe (SyntaxExpr Id) -> SyntaxExpr Id -> Type -> 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 () #

warnAboutOverflowedLiterals :: DynFlags -> HsOverLit Id -> DsM () #

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