Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Defines functions to transform Drasil-based documents into a printable version.
Synopsis
- makeDocument :: PrintingInformation -> Document -> Document
- createLayout :: PrintingInformation -> [Section] -> [LayoutObj]
- createLayout' :: PrintingInformation -> [Section] -> [LayoutObj]
- 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 #
Helpers
createLayout :: PrintingInformation -> [Section] -> [LayoutObj] Source #
Helper function for creating sections as layout objects.
createLayout' :: PrintingInformation -> [Section] -> [LayoutObj] Source #
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
.