haskell-tools-rewrite-0.3.0.1: Facilities for generating new parts of the Haskell-Tools AST

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Tools.AST.Match.Literals

Description

UPattern matching on literals for refactorings.

Synopsis

Documentation

pattern CharLit :: forall dom. Char -> Literal dom Source #

Character literal: c

pattern StringLit :: forall dom. String -> Literal dom Source #

String literal: "abc"

pattern IntLit :: forall dom. Integer -> Literal dom Source #

Integer literal: 12

pattern FracLit :: forall dom. Rational -> Literal dom Source #

Fractional literal: 3.14

pattern PrimIntLit :: forall dom. Integer -> Literal dom Source #

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

pattern PrimWordLit :: forall dom. Integer -> Literal dom Source #

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

pattern PrimFloatLit :: forall dom. Rational -> Literal dom Source #

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

pattern PrimDoubleLit :: forall dom. Rational -> Literal dom Source #

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

pattern PrimCharLit :: forall dom. Char -> Literal dom Source #

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

pattern PrimStringLit :: forall dom. String -> Literal dom Source #

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