-
-
Notifications
You must be signed in to change notification settings - Fork 347
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
Eval plugin reports "Ambiguous type variable" where ghci does not. #1591
Comments
GHCi enables |
I built the master branch without Reproduce procedure:
|
Actually, #1603 made eval plugin behave like ghci, so it works in master now, but didn't work as this issue was created. However, |
Simpler case requires -- >>> [] |
#1596) * Enable ExtendedDefaultRules for expressions in eval plugin (#1591) * Add tests for fix#1591 * Add fix for #1954 * Remove dependency on xopt_set_unlessExplSpec. Reason: It was breaking GHC 8.6.2 tests. * Remove unnecessary comment. Co-authored-by: Potato Hatsue <berberman@yandex.com> Co-authored-by: Javier Neira <atreyu.bbb@gmail.com> Co-authored-by: Potato Hatsue <1793913507@qq.com> Co-authored-by: Potato Hatsue <berberman@yandex.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Which lsp-client do you use:
VS Code
Steps to reproduce
Type
-- >>> head []
in the editor and click onEvaluate...
Expected behaviour
Output:
*** Exception: Prelude.head: empty list
as in ghci.
Actual behaviour
Output:
Workaround
Specifying a concrete type, such as
-- >>> head ([]::[Int])
does not result in this error, but is not pretty.The text was updated successfully, but these errors were encountered: