cdepillabout / cdepillabout/pretty-simple

outputOptionsPageWidth has no effect

Open
#126 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
260
Forks
30
PR merge metrics
No merged PRs in 30d

Description

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", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a"
]
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the GHCI example with outputOptionsCompact and outputOptionsPageWidth set to 80. Trace the implementation of those options and the pretty-printing entry point used by pPrintOpt; done means compact output wraps at the requested width instead of ignoring outputOptionsPageWidth.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.