-
-
Notifications
You must be signed in to change notification settings - Fork 367
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
Fix #723 (Instance declarations in hs-boot files result in GHC errors) #781
Conversation
how do we know that this works? Can we have a test? |
I've updated the boot test to include an instance declaration, is this okay? |
Did you check that the extended test fails without your fix? |
Turns out the error only presented itself when template haskell was enabled in the module with a boot file, the test now correctly fails on master and passes with this PR. |
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.
Looks good, thanks!
… errors) (haskell#781) * Fix haskell#723 * Update boot test to have instance declarations * Correct expected location of 'f' in boot-def-test * Missed TemplateHaskell pragma from boot test * Fix comment placement Co-authored-by: Pepe Iborra <pepeiborra@gmail.com> Co-authored-by: Javier Neira <atreyu.bbb@gmail.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Hi, I've put together a fix for #723.
The core of it is just using
mkBootModDetailsTc
instead oftidyProgram
on boot files.