Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Helper functions for creating HTML printers (specifically, HTML tag wrappers).
Synopsis
- data BibFormatter = BibFormatter {}
- html :: Doc -> Doc
- headTag :: Doc -> Doc
- body :: Doc -> Doc
- title :: Doc -> Doc
- paragraph :: Doc -> Doc
- code :: Doc -> Doc
- tr :: Doc -> Doc
- th :: Doc -> Doc
- td :: Doc -> Doc
- figure :: Doc -> Doc
- figcaption :: Doc -> Doc
- li :: Doc -> Doc
- pa :: Doc -> Doc
- ba :: Doc -> Doc
- ol :: [String] -> Doc -> Doc
- ul :: [String] -> Doc -> Doc
- table :: [String] -> Doc -> Doc
- img :: [(String, Doc)] -> Doc
- h :: Int -> Doc -> Doc
- data Variation
- wrap :: String -> [String] -> Doc -> Doc
- wrap' :: String -> [String] -> Doc -> Doc
- wrapGen' :: ([Doc] -> Doc) -> Variation -> String -> Doc -> [String] -> Doc -> Doc
- wrapGen :: Variation -> String -> Doc -> [String] -> Doc -> Doc
- tagL :: String -> Variation -> Doc -> Doc
- tagR :: String -> Doc
- wrapInside :: String -> [(String, Doc)] -> Doc
- caption :: Doc -> Doc
- refwrap :: Doc -> Doc -> Doc
- reflink :: String -> Doc -> Doc
- reflinkInfo :: String -> Doc -> Doc -> Doc
- reflinkURI :: String -> Doc -> Doc
- image :: Doc -> Maybe Doc -> MaxWidthPercent -> Doc
- em :: Doc -> Doc
- sup :: Doc -> Doc
- sub :: Doc -> Doc
- bold :: Doc -> Doc
- articleTitle :: Doc -> Doc
- author :: Doc -> Doc
- divTag :: [String] -> Doc -> Doc
- spanTag :: [String] -> Doc -> Doc
- indent :: Doc -> Doc
- makeCases :: [(Expr, Expr)] -> (Expr -> Doc) -> Doc
Documentation
data BibFormatter Source #
Data type that carries functions that vary for bib printing
figcaption :: Doc -> Doc Source #
Figcaption tag wrapper.
wrap' :: String -> [String] -> Doc -> Doc Source #
General wrapper function and formats the document space with hcat
.
wrapGen' :: ([Doc] -> Doc) -> Variation -> String -> Doc -> [String] -> Doc -> Doc Source #
Helper for wrapping HTML tags. The fourth argument provides class names for the CSS.
wrapGen :: Variation -> String -> Doc -> [String] -> Doc -> Doc Source #
General wrapper that formats the document space nicely.
tagL :: String -> Variation -> Doc -> Doc Source #
Helper for creating a left HTML tag with a single attribute.
reflinkInfo :: String -> Doc -> Doc -> Doc Source #
Helper for setting up links to references with additional information.
articleTitle :: Doc -> Doc Source #
Title header.