dialog-0.3.0.0: Simple dialog-based user interfaces

Copyright(c) 2015 Nikita Churaev
LicenseBSD3
Safe HaskellSafe
LanguageHaskell2010

Dialog.Shorthands

Description

 

Synopsis

Documentation

url :: String -> FormattedText Source

Makes an unlabeled link. Shorthand for (Link url (Plain url)).

link :: String -> FormattedText -> FormattedText Source

Makes a labeled link. Alias for Link.

img :: String -> Paragraph Source

Shorthand for (Picture (PictureFromURL url)).

ol :: [ListItem] -> Paragraph Source

Makes a numbered list. Shorthand for (List NumberedList items).

ul :: [ListItem] -> Paragraph Source

Makes a bullet list. Shorthand for (List BulletList items).

li :: FormattedText -> ListItem Source

Makes a single-line list item. Shorthand for (ListItem [TextParagraph text]).

li' :: [Paragraph] -> ListItem Source

Makes a list item. Shorthand for ListItem.

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.

table :: [TableRow] -> Paragraph Source

Makes a table. Alias for Table.

tr :: [TableCell] -> TableRow Source

Makes a table row. Shorthand for TableRow.

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]).

td' :: [Paragraph] -> TableCell Source

Makes a normal table cell. Shorthand for (TableCell NormalCell paragraphs).

th' :: [Paragraph] -> TableCell Source

Makes a header table cell. Shorthand for (TableCell HeaderCell paragraphs).