Moduleghc-9.10.3GHC2021
GHC.Hs.Lit
Source-language literals
- 2 types
- 6 values
- Packageghc-9.10.3
- Exports8
- LanguageGHC2021
- LicenceBSD-3-Clause
- SourceLit.hs
module Language.Haskell.Syntax.Lit
Constructors
hsOverLitNeedsParens p ol returns True if an overloaded literal
ol needs to be parenthesized under precedence p.
hsLitNeedsParens p l returns True if a literal l needs
to be parenthesized under precedence p.
See Note [Printing of literals in Core] in GHC.Types.Literal for the reasoning.
Convert a literal from one index type to another
pmPprHsLit pretty prints literals and is used when pretty printing pattern match warnings. All are printed the same (i.e., without hashes if they are primitive and not wrapped in constructors if they are boxed). This happens mainly for too reasons: * We do not want to expose their internal representation * The warnings become too messy
Orphan instances
3 instancesOutputable OverLitValOutputableBndrId p => Outputable (HsOverLit (GhcPass p))Outputable (HsLit (GhcPass p))