HORIZON HASKELLDocslts/ghc-10.0.x8174fa42026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

Moduleghc-10.0.0.20260917GHC2024

GHC.Hs.Lit

Source-language literals

  • 3 types
  • 7 values

Convert a literal from one index type to another. The constraint XXLit (GhcPass p)~DataConCantHappen means that once the XLit constructor is inhabited, we can no longer go back to the case where its not. In practice it just means you can't just convertLit to go from (HsLit GhcTc) -> (HsLit GhcPs/GhcRn), while all other conversions are fine.

datadata HsLitTc
#

Constructors

Instances2Eq, Data
  • Eq HsLitTcDefined in ghc-10.0.0.20260917 · GHC.Hs.Lit
  • Data HsLitTcDefined in ghc-10.0.0.20260917 · GHC.Hs.Instances · orphan

Orphan instances

7 instances