-
Notifications
You must be signed in to change notification settings - Fork 28
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 type_at for ghci backend #134
Conversation
Looks good to me. Pinging @owickstrom as the author of that bit who might know why it's like that. |
I've tried this out with: GHC versions: 8.0.2, 8.2.2 First, I cannot get Without applying the patch, i.e. running off master, I get When I do apply this patch, I only get type info for imported identifiers from other modules, not from local identifiers. Basically the same as regular @gilligan Do you have some minimal example Haskell module/project to reproduce the behavior your observing? Including the backend configuration you are using. |
Alright - so I tested this again and my conclusion is: it only works for me with
Am I maybe missing something obvious? Otherwise my conclusion is to use @owickstrom you said for you it worked with @parsonsmatt I am starting to think it would be great if we had tests for the different backends but i will admit they might be somewhat painful to write ;-} |
OK, I could reproduce your problem now, and it seems to come down to If you want to use plain |
We have
|
@parsonsmatt I think |
There should be a flag that indicates to the user whether or not Doing |
I'm increasingly convinced that we should be doing some GHCi customization from the plugin. |
This fixes #133 for me - i hope there is no other ghci version that behaves differently ? At least for ghc 8.0.2 and 8.2.2 this fixes it.