2020-05-19 20:25:18 +03:00
|
|
|
1/1: Building Cover (Cover.idr)
|
2021-06-13 15:31:40 +03:00
|
|
|
Error: While processing left hand side of bad. Can't match on Just (fromInteger 0) as it must have a polymorphic type.
|
2020-07-28 15:11:42 +03:00
|
|
|
|
2021-06-13 15:31:40 +03:00
|
|
|
Cover:14:6--14:12
|
2021-02-11 20:24:26 +03:00
|
|
|
10 |
|
|
|
|
11 | bad : a -> Foo a -> Bool
|
|
|
|
12 | bad Z IsNat = False
|
|
|
|
13 | bad True IsBool = True
|
2020-07-22 22:16:43 +03:00
|
|
|
14 | bad (Just 0) _ = False
|
2021-06-13 15:31:40 +03:00
|
|
|
^^^^^^
|
2020-07-28 15:11:42 +03:00
|
|
|
|
2020-08-12 01:27:52 +03:00
|
|
|
Main> Main.okay: okay (S _) IsNat
|
2020-05-19 20:25:18 +03:00
|
|
|
okay False IsBool
|
|
|
|
Main> Bye for now!
|