-
Notifications
You must be signed in to change notification settings - Fork 83
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
Use located in GADT #932
Use located in GADT #932
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, the use of unLoc
here just seems to be a historical oversight 👍
Just for reference what the inconsistency fixed by this PR is concretely:
Input | Output before this PR | Output with this PR |
---|---|---|
foo ::
A -> B |
foo ::
A -> B |
foo ::
A -> B |
data Foo where
Foo ::
A -> B |
data Foo where
Foo ::
A ->
B |
data Foo where
Foo ::
A -> B |
569e790
to
daaa6c5
Compare
I can't figure out why CI is not working on this PR 🤔 |
Do you have CI enabled for PRs originating from forks? |
No, that would be unsafe. I vaguely remember that it should work if I force-push on your PR (which I did). Anyway, it worked magically when I pushed I also granted you write access. Use it wisely and don't change the indentation step, please. |
Ah sure; Fourmolu uses GitHub Actions, which lets you click a button to manually approve running a workflow. Not sure how buildkite does it.
Ha. Even though I work on Fourmolu, I actually prefer 2-space indentation. Ironic |
Is there a particular reason why
p_hsType
was being called onunLoc quantifiedType
instead of using thelocated
combinator? It seems like it was initially implemented when GADT args + result type were separate, so there wasn't a single HsType object representing the entire type to be located, but now that we havequantifiedType
, it seems better to be consistent between function signatures + GADT constructors.