Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This is a small pretty-printing library.
Synopsis
- data Control
- data Chunk
- type Chunks = [Chunk]
- chunkToString :: Chunk -> String
- chunkLines :: Chunks -> [Chunks]
- data DocE d
- chunkToDocE :: Chunk -> DocE Doc
- data Indentation a = Indentation Int a
- newtype Doc = Doc {}
- docToChunks :: Doc -> Chunks
- toString :: Doc -> String
- dimensions :: Doc -> (Int, Int)
- null :: Doc -> Bool
- hPutDoc :: Handle -> Doc -> IO ()
- putDoc :: Doc -> IO ()
- mkDoc :: DocE Doc -> Doc
- string :: String -> Doc
Documentation
Control actions for the terminal.
A simple chunk of text. All ANSI codes are "reset" after printing.
chunkToString :: Chunk -> String Source #
chunkLines :: Chunks -> [Chunks] Source #
data Indentation a Source #
Instances
docToChunks :: Doc -> Chunks Source #