pretty icon indicating copy to clipboard operation
pretty copied to clipboard

Haskell Pretty-printer library

Results 20 pretty issues
Sort by recently updated
recently updated
newest added

- `docToUnitDoc :: Doc -> Ann.Doc ()` - `unitDocToAnnotatedDoc :: Ann.Doc () -> Ann.Doc a` These two functions together allow you to combine together annotated and unannotated documents. In particular,...

`fsep` and `fcat` are confusing as well. Does anyone know what "Paragraph fill" mean in this context? ``` "Paragraph fill" version of sep. ``` ``` "Paragraph fill" version of cat....

Consider the following code: ```haskell module Main (main) where import Prelude hiding (()) import Text.PrettyPrint main :: IO () main = do let s1 = text "if:" $+$ nest 4...

Should support: - Int[8,16,32,64] - Word - Word[8,16,32,64] - ByteString - Lazy & Strict - Text? - (Doc a)

The [documentation](http://hackage.haskell.org/package/pretty-1.1.3.3/docs/Text-PrettyPrint.html) for `Text.PrettyPrint` says: > This module should be used as opposed to the HughesPJ module. Both are equivalent though as this module simply re-exports the other. However, for...

Empty lines are useful to separate blocks in printed programs, but unless I'm getting the API wrong, currently only way to produce a empty newline is to use `text ""`....

Ideally this needs to happen in time for GHC 8.0 as `pretty` is bundled with GHC 8 See https://github.com/ekmett/ansi-wl-pprint/commit/dd40c6138e1a4ca948d8045182d25f30a8682c4d for how the `()` part can be handled The Semigroup part...

Hey all, following from @bgamari 's feedback, this is a very first, crude attempt to generalise the user-facing API to support multiple textual representations which can be reified back into...

In the case of rendering for an infinite band width we needn't do any layout (e.g. backtracking) at all. Providing a rendering function which optimizes for this case should improve...