Copyright | (c) 2009 Bernie Pope |
---|---|
License | BSD-style |
Maintainer | bjpop@csse.unimelb.edu.au |
Stability | experimental |
Portability | ghc |
Safe Haskell | Safe |
Language | Haskell98 |
Convenience class for pretty printing combinators.
Documentation
All types which can be transformed into a Doc
.
prettyText :: Pretty a => a -> String Source
Transform values into strings.
prettyPrefix :: Pretty a => Int -> a -> Doc Source
Print just the prefix of something