Module Text.Show

This library provides a type and combinators for show functions using functional lists.

Author
Bjoern Peemoeller
Version
April 2016

Exported Datatypes: ShowS

Exported Functions: showChar, showParen, shows, showString


Exported Datatypes


type ShowS = String -> String

The type synonym ShowS represents strings as difference lists. Composing functions of this type allows concatenation of lists in constant time.


Exported Functions


showString :: String -> String -> String  Deterministic 

Prepend a string

Further infos:
  • solution complete, i.e., able to compute all solutions

showChar :: Char -> String -> String  Deterministic 

Prepend a single character

Further infos:
  • solution complete, i.e., able to compute all solutions

showParen :: Bool -> (String -> String) -> String -> String  Deterministic 

Surround the inner show function with parentheses if the first argument evaluates to True.


shows :: Show a => a -> String -> String  Deterministic 

Convert a value to ShowS using the standard show function.