-
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
Backpack .hsig file support #600
Comments
I looked a little bit at this today. This is quite doable, but requires using a different parser and an extra printer.
|
EDIT: no longer valid, see #600 (comment) As far as we know, it seems that two syntax exist for backpack files:
Because of the way ormolu works, we have no choice than to use the experimental We could maybe allow "partial" Backpack files to be processed with ormolu by introducing the required EDIT: at the moment, with the associated PR, all the (GHC variant) Backpack related syntax is implemented in ormolu. |
Haven't had time to read it yet, but this might give some interesting info on backpack |
I think we can try to look at what Cabal is doing and, unless it is overly complicated, we could do the same. We already depend on the |
After a long investigation, we found that signature files are not handled by Cabal itself, but directly by GHC, using the GHC lib parser
So the "Cabal" syntax is the correct one, and the so-called "GHC" syntax in the previous comment is only made for experimentation. As a result, the blockers listed in the previous comment are no longer valid. The discussion of the implementation for this feature will continue in the associated PR. |
see https://wiki.haskell.org/Module_signature
The text was updated successfully, but these errors were encountered: