Module Tools.Doc

This program reads java class files that are the result of compiling a frege package and writes a documentation of that package. All public classes, instances, data types, type aliases and functions are listed along with programmer supplied documentation from doc comments.

Usage:

java frege.tools.Doc [-d docpath] your.frege.Package ...

This creates or updates the documentation files for the packages named on the command line. A documentation file for package a.b.C will be written in file docpath/a/b/C.html, where docpath must be an existing directory.

If the -d flag is not given, the current directory is assumed for docpath.

The generated HTML will contain links to the documentation files of imported packages, which are assumed to exist in the same docpath.

Imports

Table of Content

Definitions

data DocOpts

Constructors

DOpt {verbose ∷ Bool, docdir ∷ String, except ∷ [String], path ∷ [String]}

Member Functions

docdirDocOptsString

path name of documentation root, must exist

exceptDocOpts → [String]

excluded modules

pathDocOpts → [String]

class path

verboseDocOptsBool

print a line for each documentation file

optionsDocOpts
main[String]IO Bool
scanOptsDocOpts[String]IO (Maybe (DocOpts, [String]))
usageIO ()
docThingGlobalStringIO [Global]
docArchGlobalMutableIO FileIO [Global]
docDirGlobalMutableIO File → [String] → IO [Global]
docDirEntryGlobalMutableIO File → [String] → StringIO [Global]
workStringStIO ()

make 1 documentation file

mkLinksNSNamePackStG ()
continueImportStIO ()
data Date = native java.util.Date

Member Functions

newLongSTMutable s Date
native new
toStringMutable s DateST s String
native toString
stimeLongString
continueNamespacesFregePackageStIO ()

Functions and Values by Type

StringStIO ()

work

[String] → IO Bool

main

FregePackageStIO ()

continueNamespaces

GlobalMutableIO File → [String] → StringIO [Global]

docDirEntry

GlobalMutableIO File → [String] → IO [Global]

docDir

GlobalMutableIO FileIO [Global]

docArch

GlobalStringIO [Global]

docThing

NSNamePackStG ()

mkLinks

BoolString → [String] → [String] → DocOpts

DocOpts.DOpt

LongString

stime

DocOpts → (StringString) → DocOpts

DocOpts.chg$docdir

DocOpts → ([String]→[String]) → DocOpts

DocOpts.chg$path, DocOpts.chg$except

DocOpts → (BoolBool) → DocOpts

DocOpts.chg$verbose

DocOptsStringDocOpts

DocOpts.upd$docdir

DocOpts → [String] → IO (Maybe (DocOpts, [String]))

scanOpts

DocOpts → [String] → DocOpts

DocOpts.upd$path, DocOpts.upd$except

DocOptsBoolDocOpts

DocOpts.upd$verbose

DocOptsString

DocOpts.docdir

DocOpts → [String]

DocOpts.path, DocOpts.except

DocOptsBool

DocOpts.verbose

StIO ()

continueImport

IO ()

usage

DocOpts

options

Mutable s DateST s String

Date.toString

LongSTMutable s Date

Date.new

𝖆 → Bool

DocOpts.has$verbose, DocOpts.has$except, DocOpts.has$docdir, DocOpts.has$path

Valid HTML 4.01 Strict