HsLiteral

Plain source file: base/AST/HsLiteral.hs (2004-12-18)

HsLiteral is imported by: BaseSyntaxStruct, HsExpStruct, HsLiteralPretty, HsPatStruct, TiClassInst, TiClasses, TiDs, RemovePatBinds, SimpFieldLabels, ToQC.

module HsLiteral where

-- import Ratio
--import PrettyPrint
--import SrcLoc

data HsLiteral
    = HsInt         Integer
    | HsChar        Char
    | HsString      String
    | HsFrac        Rational
    -- GHC unboxed literals:
    | HsCharPrim    Char
    | HsStringPrim  String
    | HsIntPrim     Integer
    | HsFloatPrim   Rational
    | HsDoublePrim  Rational
    -- GHC extension:
    | HsLitLit      String
      deriving (Eq, Show)

Index

(HTML for this module was generated on 2006-08-12. About the conversion tool.)