Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Defines Drasil generator functions.
Synopsis
- dumpTo :: ToJSON a => a -> TargetFile -> IO ()
- dumpEverything :: SystemInformation -> PrintingInformation -> Path -> IO ()
- typeCheckSI :: SystemInformation -> IO ()
- gen :: DocSpec -> Document -> PrintingInformation -> IO ()
- genDot :: SystemInformation -> IO ()
- genCode :: Choices -> CodeSpec -> IO ()
- data DocType
- data DocSpec = DocSpec DocChoices Filename
- data Format
- data DocChoices = DC DocType [Format]
- docChoices :: DocType -> [Format] -> DocChoices
Debugging
dumpTo :: ToJSON a => a -> TargetFile -> IO () Source #
dumpEverything :: SystemInformation -> PrintingInformation -> Path -> IO () Source #
For debugging purposes, if the system has a DEBUG_ENV
environment
variable set to anything, we can dump the chunk maps in a system to the
host system.
Type checking
typeCheckSI :: SystemInformation -> IO () Source #
Generator Functions
gen :: DocSpec -> Document -> PrintingInformation -> IO () Source #
Generate a number of artifacts based on a list of recipes.
genDot :: SystemInformation -> IO () Source #
Generates traceability graphs as .dot files.
Types (Printing Options)
Document types include Software Requirements Specification and Website. Choosing SRS will generate both TeX and HTML files, while Website generates only as HTML. This also determines what folders the generated files will be placed into.
Instances
RuleTransformer DocSpec Source # | Allows the creation of Makefiles for documents that use LaTeX. |
Defined in Language.Drasil.Output.Formats |
data DocChoices Source #
Document choices include the type of document as well as the file formats we want to generate as.
Constructor
docChoices :: DocType -> [Format] -> DocChoices Source #
Constructor for users to choose their document options