Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Text.Layout.Table.StringBuilder
Synopsis
- class Monoid a => StringBuilder a where
- spacesB :: StringBuilder a => Int -> a
Documentation
class Monoid a => StringBuilder a where Source #
A type that is used to construct parts of a table.
Methods
stringB :: String -> a Source #
Create a builder with a String
.
Create a builder with a single Char
.
replicateCharB :: Int -> Char -> a Source #
Create a builder with several Char
s.
Instances
spacesB :: StringBuilder a => Int -> a Source #
Create a builder that contains k spaces. Negative numbers are treated as zero.