pretty-simple icon indicating copy to clipboard operation
pretty-simple copied to clipboard

pretty-printer for Haskell data types that have a Show instance

Results 21 pretty-simple issues
Sort by recently updated
recently updated
newest added

**Reproduce**: ```haskell pPrint( ((1, 2), 3, (4)) ) ``` **Current behavior** ``` ( ( 1 , 2 ) , 3 , ( 4 ) ) ``` **Expected behavior**: First tuple...

enhancement
help wanted

PR #47 changes functions like `pPrint` so that they check whether the output `Handle` is a TTY device or not. If it is not, then outputting in color is disabled...

enhancement
help wanted
beginner-friendly

Sorry for the large example! ```haskell > x Union (Cat (Cat Empty (Char 'f')) (Cat (Char ' ') (Cat (Char '"') (Cat Empty (Cat (Text 2 "\\n") (Char '"')))))) (Union...

bug
help wanted

Pretty-simple doesn't currently allow non-balanced brackets, parens, etc. This should be considered a bug. This is also related to #5.

bug
help wanted

By parsing one character at a time with [`Data.Char.readLitChar`](http://hackage.haskell.org/package/base-4.12.0.0/docs/Data-Char.html#v:readLitChar), we can avoid the need to read the entire string at once.

From discussion on #9: >As I've mentioned, I think it would work well as part of a post-processing step that would allow a user to perform more general sorts of...

enhancement
help wanted

`pretty-simple` currently parses parentheses, braces, brackets, etc to neatly display nested data structures. It would be nice to have stray parentheses, braces, brackets, etc be highlighted in red so the...

help wanted

Commit history is messy, This should be squash-merged. (I'm usually a stickler for clean git history, but this has been pretty error-prone and exploratory because of my lack of previous...

cabal-doctest is no longer unsupported or needed. The author of the `doctest` package recommends[^1] to run doctests with cabal repl --with-ghc=doctest This change removes the custom-setup and adjusts the test-suite...

I wanted to use outputOptionsCompact, but also to wrap lines when appropriate. outputOptionsPageWidth seems to have no effect. ``` ghci> pPrintOpt NoCheckColorTty defaultOutputOptionsNoColor{outputOptionsCompact=True, outputOptionsPageWidth=80} $ replicate 80 "a" [ "a",...