This library provides a type and combinators for show functions using functional lists.
Author: Bjoern Peemoeller
Version: April 2016
showString
:: String -> String -> String
Prepend a string |
showChar
:: Char -> String -> String
Prepend a single character |
showParen
:: Bool -> (String -> String) -> String -> String
Surround the inner show function with parentheses if the first argument evaluates to True .
|
shows
:: Show a => a -> String -> String
Convert a value to ShowS
using the standard show function.
|
space
:: String -> String
Prepend a space |
nl
:: String -> String
Prepend a newline |
sep
:: (String -> String) -> [String -> String] -> String -> String
Separate a list of ShowS
|
replicateS
:: Int -> (String -> String) -> String -> String
Replicate a ShowS
a given number of times
|
concatS
:: [String -> String] -> String -> String
Concatenate a list of ShowS
|
Type synonym: ShowS = String -> String
Prepend a string
|
Prepend a single character
|
Surround the inner show function with parentheses if the first argument
evaluates to |
Convert a value to |
Prepend a space
|
Prepend a newline
|
Separate a list of |
Replicate a
|
Concatenate a list of
|