2020-05-19 20:25:18 +03:00
|
|
|
1/1: Building Error1 (Error1.idr)
|
2020-08-18 01:27:49 +03:00
|
|
|
Error: While processing right hand side of wrong. Can't find an implementation for Show (Vect 4 Integer).
|
2020-07-28 15:11:42 +03:00
|
|
|
|
2021-06-05 14:53:22 +03:00
|
|
|
Error1:8:9--8:40
|
2021-02-11 20:24:26 +03:00
|
|
|
4 | Nil : Vect Z a
|
|
|
|
5 | (::) : a -> Vect k a -> Vect (S k) a
|
|
|
|
6 |
|
|
|
|
7 | wrong : String
|
2020-07-22 22:16:43 +03:00
|
|
|
8 | wrong = show (the (Vect _ _) [1,2,3,4])
|
2021-02-11 20:24:26 +03:00
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-07-28 15:11:42 +03:00
|
|
|
|
2020-05-19 20:25:18 +03:00
|
|
|
1/1: Building Error2 (Error2.idr)
|
2020-07-28 15:11:42 +03:00
|
|
|
Error: While processing right hand side of show. Multiple solutions found in search of:
|
2020-08-18 01:27:49 +03:00
|
|
|
Show (Vect k Integer)
|
2020-07-28 15:11:42 +03:00
|
|
|
|
2021-06-05 14:53:22 +03:00
|
|
|
Error2:13:38--13:45
|
2021-02-11 20:24:26 +03:00
|
|
|
09 | show (x :: xs) = show x ++ ", " ++ show xs
|
|
|
|
10 |
|
|
|
|
11 | Show (Vect n Integer) where
|
|
|
|
12 | show [] = "END"
|
2020-07-22 22:16:43 +03:00
|
|
|
13 | show (x :: xs) = show x ++ ", " ++ show xs
|
2021-02-11 20:24:26 +03:00
|
|
|
^^^^^^^
|
2020-07-28 15:11:42 +03:00
|
|
|
|
2020-06-11 16:28:34 +03:00
|
|
|
Possible correct results:
|
2021-06-05 14:53:22 +03:00
|
|
|
Show implementation at Error2:11:1--13:45
|
|
|
|
Show implementation at Error2:7:1--9:45
|
2020-07-28 15:11:42 +03:00
|
|
|
Error: While processing right hand side of wrong. Multiple solutions found in search of:
|
2020-08-18 01:27:49 +03:00
|
|
|
Show (Vect 1 Integer)
|
2020-07-28 15:11:42 +03:00
|
|
|
|
2021-06-05 14:53:22 +03:00
|
|
|
Error2:16:9--16:34
|
2021-02-11 20:24:26 +03:00
|
|
|
12 | show [] = "END"
|
|
|
|
13 | show (x :: xs) = show x ++ ", " ++ show xs
|
|
|
|
14 |
|
|
|
|
15 | wrong : String
|
2020-07-22 22:16:43 +03:00
|
|
|
16 | wrong = show (the (Vect _ _) [1])
|
2021-02-11 20:24:26 +03:00
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-07-28 15:11:42 +03:00
|
|
|
|
2020-06-11 16:28:34 +03:00
|
|
|
Possible correct results:
|
2021-06-05 14:53:22 +03:00
|
|
|
Show implementation at Error2:11:1--13:45
|
|
|
|
Show implementation at Error2:7:1--9:45
|