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

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Tools.Rewrite.Match.Literals

Description

UPattern matching on literals for refactorings.

Synopsis

Documentation

pattern CharLit :: Char -> Literal Source #

Character literal: c

pattern StringLit :: String -> Literal Source #

String literal: "abc"

pattern IntLit :: Integer -> Literal Source #

Integer literal: 12

pattern FracLit :: Rational -> Literal Source #

Fractional literal: 3.14

pattern PrimIntLit :: Integer -> Literal Source #

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

pattern PrimWordLit :: Integer -> Literal Source #

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

pattern PrimFloatLit :: Rational -> Literal Source #

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

pattern PrimDoubleLit :: Rational -> Literal Source #

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

pattern PrimCharLit :: Char -> Literal Source #

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

pattern PrimStringLit :: String -> Literal Source #

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