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

Scatter instance Prettys again with .hs-boot #847

Merged
merged 1 commit into from
Mar 16, 2024

Conversation

toku-sa-n
Copy link
Collaborator

Description of the PR

It turned out that we couldn't place instance Prettys in each AST node
module without allowing the circular dependency because of the recursive
structure of Haskell's AST, unfortunately.

Checklist

My first plan was to place all `instance Pretty`s in `HIndent.Pretty` to remove existing instances for GHC's AST while not being affected by the AST's recursive structure, but it turned out that even our own AST couldn't avoid the recursive structure. Thus, I scatter the instances again with a `.hs-boot` file.
@mihaimaruseac mihaimaruseac merged commit f8f223a into mihaimaruseac:master Mar 16, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants