We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Please attach complete source files that exhibit the issue in addition to quoting from them here.
I am at the matrix transpose exercise. (page 77)
module Main import Data.Vect createEmpties : Vect n (Vect 0 elem) createEmpties = ?createEmpties_rhs1 transpose : Vect m (Vect n elem) -> Vect n (Vect m elem) transpose [] = createEmpties transpose (x :: xs) = let xsTrans = transpose xs in ?the_rest
The code should type check and I should be able to extract ?the_rest as a lemma and continue the exercise.
Idris can not infer type.
When checking right hand side of Main.transpose with expected type Vect n (Vect (S len) elem) Can't infer type for {letval_612}
My idris version is 1.3.1
The text was updated successfully, but these errors were encountered:
Hi @roehst, it looks like this is some weird naming clash with the identifier transpose.
transpose
Try renaming transpose to something else, this code worked for me:
import Data.Vect createEmpties : Vect n (Vect 0 elem) createEmpties = ?createEmpties_rhs1 transposeMatrix : Vect m (Vect n elem) -> Vect n (Vect m elem) transposeMatrix [] = createEmpties transposeMatrix (x :: xs) = let xsTrans = transposeMatrix xs in ?the_rest
Sorry, something went wrong.
The error message should definitely improve here!
No branches or pull requests
Please attach complete source files that exhibit the issue in addition
to quoting from them here.
Steps to Reproduce
I am at the matrix transpose exercise. (page 77)
Expected Behavior
The code should type check and I should be able to extract ?the_rest as a lemma and continue the exercise.
Observed Behavior
Idris can not infer type.
My idris version is 1.3.1
The text was updated successfully, but these errors were encountered: