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

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Tools.Rewrite.Match.TH

Description

Pattern matching on Template Haskell AST fragments for refactorings.

Synopsis

Documentation

pattern IdSplice :: Name -> Splice Source #

A simple name splice: $generateX

pattern ParenSplice :: Expr -> Splice Source #

A splice with parentheses: $(generate input)

pattern QuasiQuote :: Name -> String -> QuasiQuote Source #

Template haskell quasi-quotation: [quoter|str]

pattern ExprBracket :: Expr -> Bracket Source #

Expression bracket ( [| x + y |] )

pattern PatternBracket :: Pattern -> Bracket Source #

Pattern bracket ( [p| Point x y |] )

pattern TypeBracket :: Type -> Bracket Source #

Type bracket ( [t| (Int,Int) |] )

pattern DeclsBracket :: DeclList -> Bracket Source #

Declaration bracket ( [d| f :: Int -> Int; f x = x*x |] )