mpppc-0.1.0: Multi-dimensional parametric pretty-printer with color

Text.PrettyPrint.MPPPC.TwoDim

Documentation

align :: Alignment -> Alignment -> Int -> Int -> Pretty s t -> Pretty s tSource

moveDown :: Int -> Pretty s t -> Pretty s tSource

moveLeft :: Int -> Pretty s t -> Pretty s tSource

moveRight :: Int -> Pretty s t -> Pretty s tSource

moveUp :: Int -> Pretty s t -> Pretty s tSource

data Word s t Source

Constructors

Printable s t => Word 

Fields

wLen :: Int
 
getWord :: s
 

data Line s t Source

Constructors

Printable s t => Line 

Fields

lLen :: Int
 
getWords :: [Word s t]
 

data ParaContent s t Source

Constructors

Printable s t => ParaContent 

Fields

fullLines :: [Line s t]
 
lastLine :: Line s t
 

data Para s t Source

Constructors

Printable s t => Para 

para :: Printable s t => Alignment -> Int -> s -> Pretty s tSource

columns :: Printable s t => Alignment -> Int -> Int -> s -> [Pretty s t]Source

mkParaBox :: Printable s t => Alignment -> Int -> [s] -> Pretty s tSource

flow :: forall s t. Printable s t => Int -> s -> [s]Source

getLines :: forall s t. Para s t -> [s]Source

mkLine :: Printable s t => [Word s t] -> Line s tSource

startLine :: Printable s t => Word s t -> Line s tSource

mkWord :: Printable s t => s -> Word s tSource

addWordP :: Para s t -> Word s t -> Para s tSource

addWordL :: Word s t -> Line s t -> Line s tSource

wordFits :: Int -> Word s t -> Line s t -> BoolSource

(<>) :: Pretty s t -> Pretty s t -> Pretty s tSource

(<+>) :: Pretty s t -> Pretty s t -> Pretty s tSource

(//) :: Pretty s t -> Pretty s t -> Pretty s tSource

(/+/) :: Pretty s t -> Pretty s t -> Pretty s tSource

hcat :: Alignment -> [Pretty s t] -> Pretty s tSource

hsep :: Int -> Alignment -> [Pretty s t] -> Pretty s tSource

vcat :: Alignment -> [Pretty s t] -> Pretty s tSource

vsep :: Int -> Alignment -> [Pretty s t] -> Pretty s tSource

punctuateH :: Alignment -> Pretty s t -> [Pretty s t] -> Pretty s tSource

punctuateV :: Alignment -> Pretty s t -> [Pretty s t] -> Pretty s tSource

empty :: Int -> Int -> Pretty s tSource

char :: Printable s t => t -> Pretty s tSource

text :: Printable s t => s -> Pretty s tSource

data Content s t Source

Constructors

Blank 
Printable s t => Text s 
Row [Pretty s t] 
Col [Pretty s t] 
Sub Alignment Alignment (Pretty s t) 

data Pretty s t Source

Constructors

Pretty 

Fields

rows :: Int
 
cols :: Int
 
content :: Content s t
 

blanks :: Printable s t => Int -> sSource

resizePretty :: Printable s t => Int -> Int -> [s] -> [s]Source

takePad :: Printable s t => s -> Int -> s -> sSource

takePadList :: Printable s t => s -> Int -> [s] -> [s]Source

takePadAlign :: Printable s t => Alignment -> s -> Int -> s -> sSource

takePadAlignList :: Printable s t => Alignment -> s -> Int -> [s] -> [s]Source

newtype Tok s t Source

Constructors

Tok 

Fields

unTok :: t
 

newtype Seq s t Source

Constructors

Seq 

Fields

unSeq :: s