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

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Tools.Refactor.GenerateTypeSignature

Synopsis

Documentation

generateTypeSignature Source #

Arguments

:: Simple Traversal (Ann Module STWithId) (AnnList Decl STWithId)

Access for a top-level definition if it is the selected definition

-> Simple Traversal (Ann Module STWithId) (AnnList LocalBind STWithId)

Access for a definition list if it contains the selected definition

-> (forall d. (Show (d (NodeInfo STWithId SourceTemplate)), Data (d STWithId), Typeable d, BindingElem d) => AnnList d STWithId -> Maybe (Ann ValueBind STWithId))

Selector for either local or top-level declaration in the definition list

-> Ann Module STWithId 
-> RefactoredModule Id 

Perform the refactoring on either local or top-level definition