cdepillabout / cdepillabout/pretty-simple

Compact mode destroys laziness

Open
#113 3 comments 0 reactions 0 assignees View on GitHub
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.