Language.Haskell.Refact.Utils.MonadFunctions

Conveniences for state access

fetchLinesFinal

fetchOrigToks

fetchToks

getTypecheckedModule

getRefactStreamModified

getRefactInscopes

getRefactRenamed

putRefactRenamed

getRefactParsed

putParsedModule

clearParsedModule

getRefactFileName

TokenUtils API

replaceToken

putToksForSpan

putDeclToksForSpan

getToksForSpan

getToksBeforeSpan

putToksForPos

addToksAfterSpan

addToksAfterPos

putDeclToksAfterSpan

removeToksForSpan

removeToksForPos

syncDeclToLatestStash

indentDeclAndToks

LayoutUtils API

For debugging

drawTokenTree

drawTokenTreeDetailed

getTokenTree

showLinesDebug

State flags for managing generic traversals

getRefactDone

setRefactDone

clearRefactDone

setStateStorage

getStateStorage

updateToks

updateToksWithPos

For use by the tests only

initRefactModule