haskell-tools-refactor-0.2.0.0: Refactoring Tool for Haskell

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Tools.Refactor.ExtractBinding

Synopsis

Documentation

type Ann' e dom = Ann e dom SrcTemplateStage Source #

isParenLikeExpr :: Expr dom st -> Bool Source #

All expressions that are bound stronger than function application.

getExternalBinds :: ExtractBindingDomain dom => Ann' Expr dom -> Ann' Expr dom -> [Ann' Name dom] Source #

Gets the values that have to be passed to the extracted definition

generateCall :: String -> [Ann' Name dom] -> Ann' Expr dom Source #

Generates the expression that calls the local binding

generateBind :: String -> [Ann' Pattern dom] -> Ann' Expr dom -> Ann' ValueBind dom Source #

Generates the local binding for the selected expression