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

MatchLit

Synopsis

# Documentation

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

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

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

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