-
Notifications
You must be signed in to change notification settings - Fork 71
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
Idris mode inferring unapplied function types #476
Comments
@Abhiroop This seems like an issue within idris itself. idris-mode itself does not know how to typecheck Idris and interacts with a background idris process. But I agree this is kind of odd... |
When I do
So it seems something happens in the communication between idris-mode and the idris interpreter process. When tracing communication with idris process, it definitely returns a term with unapplied function. |
The issue seems to be at the Line 177 in 0a5a165
Because the |
This is going to be part of the Idris IDE protocol server. It probably needs updating - the command-line REPL also used to do this. In the meantime, you can right-click the expression and click "Normalize" to reduce it. |
@david-christiansen I tracked this to the |
Also just came across this, I've been using |
For example,
I am attempting this basic example:
Here when I typecheck
plus_commutes_S
, when I expectedit is being inferred as
I am using Idris 1.2 and spacemacs idris layer (which I assume pulls the latest version of idris mode)
The text was updated successfully, but these errors were encountered: