Copyright | (c) 2015 Nikita Churaev |
---|---|
License | BSD3 |
Safe Haskell | Safe |
Language | Haskell2010 |
- p :: FormattedText -> Paragraph
- url :: String -> FormattedText
- link :: String -> FormattedText -> FormattedText
- img :: String -> Paragraph
- ol :: [ListItem] -> Paragraph
- ul :: [ListItem] -> Paragraph
- li :: FormattedText -> ListItem
- li' :: [Paragraph] -> ListItem
- str :: String -> FormattedText
- b :: FormattedText -> FormattedText
- i :: FormattedText -> FormattedText
- u :: FormattedText -> FormattedText
- color :: Color -> FormattedText -> FormattedText
- size :: FontSize -> FormattedText -> FormattedText
- table :: [TableRow] -> Paragraph
- tr :: [TableCell] -> TableRow
- td :: FormattedText -> TableCell
- th :: FormattedText -> TableCell
- td' :: [Paragraph] -> TableCell
- th' :: [Paragraph] -> TableCell
Documentation
p :: FormattedText -> Paragraph Source
Shorthand for TextParagraph
.
link :: String -> FormattedText -> FormattedText Source
Makes a labeled link. Alias for Link
.
li :: FormattedText -> ListItem Source
Makes a single-line list item. Shorthand for
(
.ListItem
[TextParagraph
text])
str :: String -> FormattedText Source
Converts a String
to a FormattedText
. Shorthand for Plain
.
b :: FormattedText -> FormattedText Source
Makes a text bold. Shorthand for Bold
.
i :: FormattedText -> FormattedText Source
Makes a text italic. Shorthand for Italic
.
u :: FormattedText -> FormattedText Source
Makes a text underlined. Shorthand for Underline
.
color :: Color -> FormattedText -> FormattedText Source
Changes the color of a text. Alias of Colored
.
size :: FontSize -> FormattedText -> FormattedText Source
Changes the size of a text. Alias of Size
.
td :: FormattedText -> TableCell Source
Makes a normal table cell with a single line of text in it. Shorthand for
(
.TableCell
NormalCell
[TextParagraph
text])
th :: FormattedText -> TableCell Source
Makes a table header cell with a single line of text in it. Shorthand for
(
.TableCell
HeaderCell
[TextParagraph
text])