2020-05-19 20:25:18 +03:00
|
|
|
1/1: Building Cover (Cover.idr)
|
2020-07-28 15:11:42 +03:00
|
|
|
Error: While processing left hand side of badBar. Can't match on 0 as it has a polymorphic type.
|
|
|
|
|
2021-06-05 14:53:22 +03:00
|
|
|
Cover:16:1--16:7
|
2021-02-11 20:24:26 +03:00
|
|
|
12 | cty Nat (S _) = S Z
|
|
|
|
13 | cty _ x = S (S Z)
|
|
|
|
14 |
|
|
|
|
15 | badBar : a -> Nat
|
2020-07-22 22:16:43 +03:00
|
|
|
16 | badBar Z = Z
|
2021-02-11 20:24:26 +03:00
|
|
|
^^^^^^
|
2020-07-28 15:11:42 +03:00
|
|
|
|
2020-08-12 01:27:52 +03:00
|
|
|
Main> Main.foo: foo (0, S _)
|
2020-05-19 20:25:18 +03:00
|
|
|
foo (S _, _)
|
2020-08-12 01:27:52 +03:00
|
|
|
Main> Main.bar: bar _
|
2020-05-19 20:25:18 +03:00
|
|
|
Main> Main.cty: All cases covered
|
|
|
|
Main> Bye for now!
|