Safe Haskell | None |
---|
Contains all the data structures and functions for composing pieces of formatted text.
- plainText :: String -> Element
- asText :: Show a => a -> Element
- text :: Text -> Element
- defaultText :: Text
- toText :: String -> Text
- bold :: Text -> Text
- italic :: Text -> Text
- color :: Color -> Text -> Text
- monospace :: Text -> Text
- typeface :: String -> Text -> Text
- header :: Text -> Text
- height :: Double -> Text -> Text
Elements
asText :: Show a => a -> ElementSource
Creates a text element from any showable type, defaulting to the monospace typeface.
Composing
Creates the default text. By default the text is black sans-serif with a height of 14px.