Module Tools.Splitter

This is an undocumented module

Imports

Table of Content

Definitions

usageIO ()
main ∷ [String] → IO ()
ideoffStIO (String, Int)
oursGlobal → [Symbol]
ascendingGlobal → [Symbol]
split ∷ [String] → StIO (String, Int)
printModsGlobalStringMaybe String → [QName] → [QName] → [Symbol] → IO ()
targetPathGlobalStringStringString

make filename from package name x.y.z.Packet => dest/x/y/z/Packet.suffix

newModGlobalStringSTMutable RealWorld PrintWriter

Create a new package and return a PrintWriter for it.

appModGlobalStringSTMutable RealWorld PrintWriter
printHeaderMutableIO PrintWriterStringIO ()
printImportsGlobalMutableIO PrintWriterIO ()
printImpDclGlobalMutableIO PrintWriterDefinitionSIO ()
dotDepMutableIO PrintWriterGlobalTreeMap QName [QName] → [QName]IO ()
dotkeys ∷ [String]

items dot doesn't like as bare word

printDep ∷ (Nice 𝖇, Ord 𝖆, Eq 𝖇, Nice 𝖆) ⇒ GlobalTreeMap 𝖆 [𝖇] → [𝖆]IO ()
printRangeGlobalSymbolIO ()
fullRangeSymbolMaybe SymbolStIO Position

The full range goes from the lower range to the upper range, inclusive.

The lower range is determined by going from the original position backwards as long as there are comments or documentation.

The upper range is the last non comment or documentation token before the next definition in the ascending list of definitions, or, if there is no next, the last token in the file.

dclintro ∷ [TokenID]
indexIn ∷ (ArrayElement 𝖆, Eq 𝖆) ⇒ 𝖆 → JArray 𝖆Maybe Int

find the index of a given token

makeRanges[Symbol]StIO ()

Update symbol positions with their full range computed by fullRange.

symDepGlobalSymbolTreeSet QName
nameDepGlobalTreeSet QNameQNameTreeSet QName
exprDepGlobalExprTTreeSet QName
sigmaDepGlobalSigmaTreeSet QName
rhoDepGlobalTreeSet QNameRhoTreeSet QName
ctxDepGlobalTreeSet QNameContextTreeSet QName
tauDepGlobalTreeSet QNameTauTreeSet QName

Functions and Values by Type

MutableIO PrintWriterStringIO ()

printHeader

MutableIO PrintWriterGlobalTreeMap QName [QName] → [QName] → IO ()

dotDep

SymbolMaybe SymbolStIO Position

fullRange

[Symbol] → StIO ()

makeRanges

[String] → StIO (String, Int)

split

[String] → IO ()

main

GlobalTreeSet QNameContextTreeSet QName

ctxDep

GlobalTreeSet QNameRhoTreeSet QName

rhoDep

GlobalTreeSet QNameTauTreeSet QName

tauDep

GlobalTreeSet QNameQNameTreeSet QName

nameDep

GlobalMutableIO PrintWriterDefinitionSIO ()

printImpDcl

GlobalMutableIO PrintWriterIO ()

printImports

GlobalSymbolTreeSet QName

symDep

GlobalSymbolIO ()

printRange

GlobalSigmaTreeSet QName

sigmaDep

GlobalStringMaybe String → [QName] → [QName] → [Symbol] → IO ()

printMods

GlobalStringStringString

targetPath

GlobalStringSTMutable RealWorld PrintWriter

appMod, newMod

GlobalExprTTreeSet QName

exprDep

Global → [Symbol]

ascending, ours

StIO (String, Int)

ideoff

IO ()

usage

[String]

dotkeys

[TokenID]

dclintro

(ArrayElement 𝖆, Eq 𝖆) ⇒ 𝖆 → JArray 𝖆 → Maybe Int

indexIn

(Nice 𝖇, Ord 𝖆, Eq 𝖇, Nice 𝖆) ⇒ GlobalTreeMap 𝖆 [𝖇] → [𝖆] → IO ()

printDep

Valid HTML 4.01 Strict