layout-0.0.0.2: Turn values into pretty text or markup

Safe HaskellSafe
LanguageHaskell98

Text.Layout.Class

Documentation

class Monoid format => IsFormat format where Source #

Minimal complete definition

formatVerbatim

Methods

formatVerbatim :: String -> format Source #

fromShow :: Show a => a -> format Source #

class IsFormat format => Layout a format where Source #

Minimal complete definition

format

Methods

format :: a -> format Source #

formatList :: [a] -> format Source #

Instances

Layout Char DisplayText Source # 
Layout Double DisplayText Source # 
Layout Float DisplayText Source # 
Layout Int DisplayText Source # 
Layout Integer DisplayText Source # 
Layout () DisplayText Source # 
Layout DisplayText DisplayText Source # 
Layout a DisplayText => Layout [a] DisplayText Source # 

Methods

format :: [a] -> DisplayText Source #

formatList :: [[a]] -> DisplayText Source #

Show a => Layout (Maybe a) DisplayText Source # 
Show (Ratio a) => Layout (Ratio a) DisplayText Source # 
(Show a, Show b) => Layout (Either a b) DisplayText Source # 
(Show a, Show b) => Layout (a, b) DisplayText Source # 

Methods

format :: (a, b) -> DisplayText Source #

formatList :: [(a, b)] -> DisplayText Source #

(Show a, Show b, Show c) => Layout (a, b, c) DisplayText Source # 

Methods

format :: (a, b, c) -> DisplayText Source #

formatList :: [(a, b, c)] -> DisplayText Source #

(Layout a DisplayText, Layout b DisplayText, Layout c DisplayText) => Layout (Table a b c) DisplayText Source # 
(Show a, Show b, Show c, Show d) => Layout (a, b, c, d) DisplayText Source # 

Methods

format :: (a, b, c, d) -> DisplayText Source #

formatList :: [(a, b, c, d)] -> DisplayText Source #

(Show a, Show b, Show c, Show d, Show e) => Layout (a, b, c, d, e) DisplayText Source # 

Methods

format :: (a, b, c, d, e) -> DisplayText Source #

formatList :: [(a, b, c, d, e)] -> DisplayText Source #

(Show a, Show b, Show c, Show d, Show e, Show f) => Layout (a, b, c, d, e, f) DisplayText Source # 

Methods

format :: (a, b, c, d, e, f) -> DisplayText Source #

formatList :: [(a, b, c, d, e, f)] -> DisplayText Source #

(Show a, Show b, Show c, Show d, Show e, Show f, Show g) => Layout (a, b, c, d, e, f, g) DisplayText Source # 

Methods

format :: (a, b, c, d, e, f, g) -> DisplayText Source #

formatList :: [(a, b, c, d, e, f, g)] -> DisplayText Source #

(Show a, Show b, Show c, Show d, Show e, Show f, Show g, Show h) => Layout (a, b, c, d, e, f, g, h) DisplayText Source # 

Methods

format :: (a, b, c, d, e, f, g, h) -> DisplayText Source #

formatList :: [(a, b, c, d, e, f, g, h)] -> DisplayText Source #

(Show a, Show b, Show c, Show d, Show e, Show f, Show g, Show h, Show i) => Layout (a, b, c, d, e, f, g, h, i) DisplayText Source # 

Methods

format :: (a, b, c, d, e, f, g, h, i) -> DisplayText Source #

formatList :: [(a, b, c, d, e, f, g, h, i)] -> DisplayText Source #