Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Defines functions to transform Drasil-based documents into a printable version.
Synopsis
- makeDocument :: PrintingInformation -> Document -> Document
- makeProject :: PrintingInformation -> Document -> Project
- createFiles :: PrintingInformation -> [Section] -> [File]
- createRefMap' :: File -> [(String, Filename)]
- createRefMap :: Filename -> LayoutObj -> [(String, Filename)]
- createRef :: Filename -> Label -> [(String, Filename)]
- createLayout :: PrintingInformation -> [Section] -> [LayoutObj]
- createLayout' :: PrintingInformation -> [Section] -> [LayoutObj]
- extractSubS :: Int -> Section -> [(Depth, Section)]
- file :: PrintingInformation -> (Depth, Section) -> File
- sec :: PrintingInformation -> Int -> Section -> LayoutObj
- cel :: PrintingInformation -> Int -> Section -> LayoutObj
- layout :: PrintingInformation -> Int -> SecCons -> LayoutObj
- lay :: PrintingInformation -> Contents -> LayoutObj
- layLabelled :: PrintingInformation -> LabelledContent -> LayoutObj
- layUnlabelled :: PrintingInformation -> RawContent -> LayoutObj
- layCite :: Citation -> Citation
- layField :: CiteField -> CiteField
- makeL :: PrintingInformation -> ListType -> ListType
- item :: PrintingInformation -> ItemType -> ItemType
Main Function
makeDocument :: PrintingInformation -> Document -> Document Source #
makeProject :: PrintingInformation -> Document -> Project Source #
Helpers
createFiles :: PrintingInformation -> [Section] -> [File] Source #
Helper function for creating sections as Files.
createRefMap' :: File -> [(String, Filename)] Source #
Helper function for creating a RefMap for a Document.
createRefMap :: Filename -> LayoutObj -> [(String, Filename)] Source #
Helper function for creating a RefMap for a LayoutObj
createRef :: Filename -> Label -> [(String, Filename)] Source #
Helper function for mapping a Label to a Filename
createLayout :: PrintingInformation -> [Section] -> [LayoutObj] Source #
Helper function for creating sections as layout objects.
createLayout' :: PrintingInformation -> [Section] -> [LayoutObj] Source #
extractSubS :: Int -> Section -> [(Depth, Section)] Source #
Helper for extracting subsections into their own sections.
file :: PrintingInformation -> (Depth, Section) -> File Source #
Helper for converting a Section to a File
sec :: PrintingInformation -> Int -> Section -> LayoutObj Source #
Helper function for creating sections at the appropriate depth.
layout :: PrintingInformation -> Int -> SecCons -> LayoutObj Source #
Helper for translating sections into a printable representation of layout objects (LayoutObj
).
layLabelled :: PrintingInformation -> LabelledContent -> LayoutObj Source #
Helper that translates LabelledContent
s to a printable representation of LayoutObj
.
Called internally by lay
.
layUnlabelled :: PrintingInformation -> RawContent -> LayoutObj Source #
Helper that translates RawContent
s to a printable representation of LayoutObj
.
Called internally by lay
.