haskell / haskell/play-haskell

Suggestion about Core output options

Open
#2 3 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
Haskell
Stars
160
Forks
14
PR merge metrics
No merged PRs in 30d

Description

Hi, I found in your backlog in [TODO.txt](https://github.com/tomsmeding/pastebin-haskell/blob/play/TODO.txt) record about additional core output options to increase its human readability.
I recommend you to use these options: `-dsuppress-all -dno-suppress-type-signatures -dsuppress-uniques -dppr-case-as-let`
`dsuppress-all` doesn't perform `-dsuppress-uniques` because [this often makes the printout ambiguous](https://downloads.haskell.org/ghc/latest/docs/users_guide/debugging.html?highlight=dsuppress%20all#ghc-flag--dsuppress-all), but I think it's not a real problem because of lexical scopes in haskell.
`dno-suppress-type-signatures` is needed to return type signatures, that all are suppressed by `dsuppress-all`
`dppr-case-as-let` just changes some single cases to strict let expressions.
I'm also using `-dppr-cols200`, but this might look bad on small screens.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.