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

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Tools.AST.Gen.TH

Description

Generation of Template Haskell AST fragments for refactorings.

Synopsis

Documentation

mkIdSplice :: Name dom -> Splice dom Source #

A simple name splice: $generateX

mkParenSplice :: Expr dom -> Splice dom Source #

A splice with parentheses: $(generate input)

mkQuasiQuote :: Name dom -> String -> QuasiQuote dom Source #

Template haskell quasi-quotation: [quoter|str]

mkExprBracket :: Expr dom -> Bracket dom Source #

Expression bracket ( [| x + y |] )

mkPatternBracket :: Pattern dom -> Bracket dom Source #

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

mkTypeBracket :: Type dom -> Bracket dom Source #

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

mkDeclsBracket :: [Decl dom] -> Bracket dom Source #

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