haskell-tools-ast-0.2.0.0: Haskell AST for efficient tooling

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Tools.AST.Literals

Description

Representation of Haskell literals

Synopsis

Documentation

data Literal dom stage Source #

Haskell literals

Constructors

CharLit

Character literal: c

Fields

StringLit

String literal: "abc"

IntLit

Integer literal: 12

FracLit

Fractional literal: 3.14

PrimIntLit

Primitive integer literal (of type Int#): 32#

PrimWordLit

Primitive word literal (of type Word#): 32##

PrimFloatLit

Primitive float literal (of type Float#): 3.14#

PrimDoubleLit

Primitive double literal (of type Double#): 3.14##

PrimCharLit

Primitive character literal (of type Char#): c#

Fields

PrimStringLit

Prmitive string literal (of type Addr#): "xxx"#

Instances

type Rep (Literal dom stage) Source # 
type Rep (Literal dom stage) = D1 (MetaData "Literal" "Language.Haskell.Tools.AST.Literals" "haskell-tools-ast-0.2.0.0-5y5XIph7fmGIUhHQZ35OfD" False) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "CharLit" PrefixI True) (S1 (MetaSel (Just Symbol "_charLitValue") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Char))) (C1 (MetaCons "StringLit" PrefixI True) (S1 (MetaSel (Just Symbol "_stringLitValue") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 String)))) ((:+:) (C1 (MetaCons "IntLit" PrefixI True) (S1 (MetaSel (Just Symbol "_intLitValue") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Integer))) ((:+:) (C1 (MetaCons "FracLit" PrefixI True) (S1 (MetaSel (Just Symbol "_fracLitValue") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Rational))) (C1 (MetaCons "PrimIntLit" PrefixI True) (S1 (MetaSel (Just Symbol "_intLitValue") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Integer)))))) ((:+:) ((:+:) (C1 (MetaCons "PrimWordLit" PrefixI True) (S1 (MetaSel (Just Symbol "_intLitValue") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Integer))) (C1 (MetaCons "PrimFloatLit" PrefixI True) (S1 (MetaSel (Just Symbol "_floatLitValue") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Rational)))) ((:+:) (C1 (MetaCons "PrimDoubleLit" PrefixI True) (S1 (MetaSel (Just Symbol "_floatLitValue") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Rational))) ((:+:) (C1 (MetaCons "PrimCharLit" PrefixI True) (S1 (MetaSel (Just Symbol "_charLitValue") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Char))) (C1 (MetaCons "PrimStringLit" PrefixI True) (S1 (MetaSel (Just Symbol "_stringLitValue") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 String)))))))