Moduleghc-10.0.0.20260917GHC2024
GHC.HsToCore.Match.Literal
Synopsis
- value dsLit
- value dsOverLit
- value hsLitKey
- value tidyLitPat
- value tidyNPat
- value matchLiterals
- value matchNPlusKPats
- value matchNPats
- value numericConversionNames
- value warnAboutOverflowedOverLit
- value warnAboutOverflowedLit
- value warnAboutEmptyEnumerations
- Packageghc-10.0.0.20260917
- Exports12
- LanguageGHC2024
- 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]