ghc-lib-0.20190516: The GHC API, decoupled from GHC versions

Safe HaskellNone
LanguageHaskell2010

MatchLit

Synopsis

Documentation

dsOverLit :: HsOverLit GhcTc -> DsM CoreExpr Source #

Post-typechecker, the HsExpr field of an OverLit contains (an expression for) the literal value itself.

warnAboutOverflowedOverLit :: HsOverLit GhcTc -> DsM () Source #

Emit warnings on overloaded integral literals which overflow the bounds implied by their type.

warnAboutOverflowedLit :: HsLit GhcTc -> DsM () Source #

Emit warnings on integral literals which overflow the boudns implied by their type.

warnAboutEmptyEnumerations :: DynFlags -> LHsExpr GhcTc -> Maybe (LHsExpr GhcTc) -> LHsExpr GhcTc -> DsM () Source #

Warns about [2,3 .. 1] which returns the empty list. Only works for integral types, not floating point.