chatty-text-0.6: Provides some classes and types for dealing with text, using the fundaments of Chatty.

Safe HaskellNone

Text.Chatty.Typograph

Description

Provides functions that typeset the input to a limited output width (to avoid ugly word cuts).

Synopsis

Documentation

simpleTypesetter :: (Functor m, ChScanner m, ChPrinter m) => Int -> m ()Source

Simple flush-left typesetter without support for syllabification.

leftTypesetter :: (Functor m, ChScanner m, ChPrinter m) => Int -> (String -> [String]) -> m ()Source

Backtracking flush-left typesetter using the given hyphenator function.