bishbosh-0.0.0.2: Plays chess.

Safe HaskellSafe
LanguageHaskell2010

BishBosh.Text.ShowList

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
Exports functions to facilitate unification of the style of output text.

Synopsis

Constants

showsInfoPrefix :: ShowS Source #

Used to qualify output.

showsWarningPrefix :: ShowS Source #

Used to qualify output.

showsErrorPrefix :: ShowS Source #

Used to qualify output.

showsAssociation :: ShowS Source #

Used to separate an identifier & the it's value.

Functions

capitaliseInitial :: ShowS Source #

Capitalise the initial letter of the specified string.

showsSeparator :: ShowS Source #

Used to separate the items of a list.

showsDelimitedList Source #

Arguments

:: ShowS

The list-separator.

-> ShowS

Left delimiter.

-> ShowS

Right delimiter.

-> [ShowS] 
-> ShowS 

Shows a list with the specified delimiters.

showsUnterminatedList :: [ShowS] -> ShowS Source #

Shows a list without terminal delimiters.

showsFormattedList Source #

Arguments

:: ShowS

The list-separator.

-> (a -> ShowS)

Format the list-elements.

-> [a]

An arbitrary list of items.

-> ShowS 

Formats & shows a list with standard terminal delimiters.

showsFormattedList' Source #

Arguments

:: (a -> ShowS)

Format the list-elements.

-> [a]

An arbitrary list of items.

-> ShowS 

Formats & shows a list with standard delimiters.

showsAssociationList Source #

Arguments

:: ShowS

The list-separator.

-> [(String, ShowS)] 
-> ShowS 

Shows an association-list with standard terminal delimiters.

showsAssociationList' :: [(String, ShowS)] -> ShowS Source #

Shows an association-list with standard delimiters.

splitOn :: (a -> Bool) -> [a] -> [[a]] Source #

Split the specified list, using the predicate to identify the separator.

CAVEAT: the separator isn't included in the results.