Moduleghc-9.10.3GHC2021
GHC.HsToCore.Match.Literal
- 12 values
- Packageghc-9.10.3
- Exports12
- LanguageGHC2021
- LicenceBSD-3-Clause
- SourceLiteral.hs
value
matchLiterals :: NonEmpty Id-> TypeType of the whole case expression
-> NonEmpty (NonEmpty EquationInfoNE)All PgLits
-> DsM (MatchResult CoreExpr)
Emit warnings on overloaded integral literals which overflow the bounds implied by their type.
Emit warnings on integral literals which overflow the bounds implied by their type.
Warns about [2,3 .. 1] or [ which return the empty list.
For numeric literals, only works for integral types, not floating point.b .. a]