Text.PrettyPrint.Boxes
- Package
- purescript-boxes
- Repository
- cdepillabout/purescript-boxes
#appendHorizTop Source
appendHorizTop :: Box -> Box -> Box
Paste two boxes together horizontally, using a default (top) alignment.
#appendHorizTopExtraCol Source
appendHorizTopExtraCol :: Box -> Box -> Box
Paste two boxes together horizontally with a single intervening column of space, using a default (top) alignment.
#(<<>>) Source
Operator alias for Text.PrettyPrint.Boxes.appendHorizTop (left-associative / precedence 7)
#(<<+>>) Source
Operator alias for Text.PrettyPrint.Boxes.appendHorizTopExtraCol (left-associative / precedence 7)
#appendVertLeft Source
appendVertLeft :: Box -> Box -> Box
Paste two boxes together vertically, using a default (left) alignment.
#appendVertLeftExtraCol Source
appendVertLeftExtraCol :: Box -> Box -> Box
Paste two boxes together vertically with a single intervening row of space, using a default (left) alignment.
#(//) Source
Operator alias for Text.PrettyPrint.Boxes.appendVertLeft (left-associative / precedence 7)
#(/+/) Source
Operator alias for Text.PrettyPrint.Boxes.appendVertLeftExtraCol (left-associative / precedence 7)
#moveLeft Source
moveLeft :: Int -> Box -> Box
Move a box left by putting it in a larger box with extra columns, aligned left. Note that the name of this function is something of a white lie, as this will only result in the box being moved left by the specified amount if it is already in a larger right-aligned context.
#alignHoriz Source
alignHoriz :: Alignment -> Int -> Box -> Box
alignHoriz algn n bx
creates a box of width n
, with the
contents and height of bx
, horizontally aligned according to
algn
.
- Modules
- Text.
PrettyPrint. Boxes