-
Notifications
You must be signed in to change notification settings - Fork 21
Add instances for Error.Diagnose.Style #17
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
Conversation
|
Hello, thanks for the PR. |
|
They are useful if you want to embed marked-up, laid-out diagnostics into other structures which require those instances. As for
Unfortunately I don't believe there is a standard import for this; and unfortunately I'm not aware of any other compiler even implementing Generics :( |
|
Although it could be made to be conditional on whether it's compiling with GHC or not I guess? |
|
This definitely could be done with CPP, if I remember correctly. |
|
I have a few more improvements I'd like to do, so I could roll this PR and the CPP stuff into a future PR if that's preferable? |
|
There's no problem in doing this in here, as long as the PR is not as massive as #14 (which is to be merged soon enough). |
|
A'ight, I'll wait :) In the meantime, what do you want me to do with the Generics? |
|
If this is very much needed right now, I can try to merge this and release a new version in the day. |
|
Eh, I don't mind having a few orphan instances for a while; it looks like I'll have to overhaul all my diagnostics-related code soon anyway :) |
|
Changes related to the core of the library (creating reports, diagnostics and positions) should be minimal, as we tried to keep as much as existed before. Most of it should just fall under renaming constructors or types, which shouldn't be much of an issue (we'll release an entirely new version anyway, to indicate breaking changes, but we may also add backwards-compatible constructors and type aliases to facilitate the transition, and deprecate them straight away to encourage changes).
|
|
Closing this as it should have been included in #22. |
No description provided.