2020-05-19 20:25:18 +03:00
|
|
|
1/1: Building Error (Error.idr)
|
2020-07-28 15:11:42 +03:00
|
|
|
Error: While processing right hand side of wrong. Sorry, I can't find any elaboration which works. All errors:
|
2021-09-15 13:57:50 +03:00
|
|
|
If Main.length: When unifying:
|
|
|
|
Nat
|
|
|
|
and:
|
|
|
|
Vect ?n ?a
|
2020-07-28 15:11:42 +03:00
|
|
|
Mismatch between: Nat and Vect ?n ?a.
|
|
|
|
|
2021-06-05 14:53:22 +03:00
|
|
|
Error:12:18--12:19
|
2021-02-11 20:24:26 +03:00
|
|
|
08 | length [] = Z
|
|
|
|
09 | length (x :: xs) = S (length xs)
|
|
|
|
10 |
|
|
|
|
11 | wrong : Nat -> Nat
|
2020-07-22 22:16:43 +03:00
|
|
|
12 | wrong x = length x
|
2021-02-11 20:24:26 +03:00
|
|
|
^
|
2020-07-28 15:11:42 +03:00
|
|
|
|
2021-09-15 13:57:50 +03:00
|
|
|
If Prelude.List.length: When unifying:
|
|
|
|
Nat
|
|
|
|
and:
|
|
|
|
List ?a
|
2020-07-28 15:11:42 +03:00
|
|
|
Mismatch between: Nat and List ?a.
|
2020-05-19 20:25:18 +03:00
|
|
|
|
2021-06-05 14:53:22 +03:00
|
|
|
Error:12:18--12:19
|
2021-02-11 20:24:26 +03:00
|
|
|
08 | length [] = Z
|
|
|
|
09 | length (x :: xs) = S (length xs)
|
|
|
|
10 |
|
|
|
|
11 | wrong : Nat -> Nat
|
2020-07-22 22:16:43 +03:00
|
|
|
12 | wrong x = length x
|
2021-02-11 20:24:26 +03:00
|
|
|
^
|
2020-07-28 15:11:42 +03:00
|
|
|
|
2021-09-15 13:57:50 +03:00
|
|
|
If Prelude.String.length: When unifying:
|
|
|
|
Nat
|
|
|
|
and:
|
|
|
|
String
|
2020-07-28 15:11:42 +03:00
|
|
|
Mismatch between: Nat and String.
|
2020-05-19 20:25:18 +03:00
|
|
|
|
2021-06-05 14:53:22 +03:00
|
|
|
Error:12:18--12:19
|
2021-02-11 20:24:26 +03:00
|
|
|
08 | length [] = Z
|
|
|
|
09 | length (x :: xs) = S (length xs)
|
|
|
|
10 |
|
|
|
|
11 | wrong : Nat -> Nat
|
2020-07-22 22:16:43 +03:00
|
|
|
12 | wrong x = length x
|
2021-02-11 20:24:26 +03:00
|
|
|
^
|
2020-05-19 20:25:18 +03:00
|
|
|
|