Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion about Core output options #2

Open
s-and-witch opened this issue Oct 25, 2022 · 3 comments
Open

Suggestion about Core output options #2

s-and-witch opened this issue Oct 25, 2022 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@s-and-witch
Copy link

Hi, I found in your backlog in 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, 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.

@tomsmeding
Copy link
Collaborator

Thanks! I'll put a reference to this issue in the TODO.txt file. I'm not finding time to work on the playground currently, but I hope I'll find time again later this fall.

@tomsmeding tomsmeding transferred this issue from tomsmeding/pastebin-haskell Jan 31, 2023
@tomsmeding tomsmeding added enhancement New feature or request help wanted Extra attention is needed labels Jan 31, 2023
@Kleidukos
Copy link
Member

A side-quest that could probably help with the Core Output would be help get https://github.com/bgamari/tree-sitter-ghc-core/ to the finish line.

@flip111
Copy link

flip111 commented Jan 18, 2025

It would also be nice if there were syntax highlighting on core output. And another cool feature (albeit more complicated) would be if you could jump into different parts of the core output by clicking in the original source file (though i have no idea the needed mapping information would come from)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants