cdepillabout / cdepillabout/pretty-simple
Compact mode destroys laziness
- Dominant language
- Haskell
- Stars
- 260
- Forks
- 30
- PR merge metrics
- No merged PRs in 30d
Description
Oh, and I realized that currently `pretty-simple` doesn't parse and pretty-print lazily with the compact option:
```haskell
> pPrintOpt CheckColorTty defaultOutputOptionsDarkBg { outputOptionsCompact = True } (repeat 3)
```
This doesn't print anything. Maybe I should make a separate issue about this...
_Originally posted by @cdepillabout in https://github.com/cdepillabout/pretty-simple/issues/84#issuecomment-1154163224_
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the `pPrintOpt` command in the issue with `outputOptionsCompact = True` and inspect the compact parsing and pretty-printing paths. Done means an infinite value such as `repeat 3` begins producing output lazily instead of producing nothing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100