2021-06-12 16:23:25 +03:00
|
|
|
1/1: Building tuple (tuple.idr)
|
2021-06-13 15:31:40 +03:00
|
|
|
Error: While processing left hand side of tupleBug. Can't match on (?_, ?_) as it must have a polymorphic type.
|
2021-06-12 16:23:25 +03:00
|
|
|
|
2021-06-13 15:31:40 +03:00
|
|
|
tuple:2:15--2:19
|
2021-06-12 16:23:25 +03:00
|
|
|
1 | tupleBug : Pair () a -> ()
|
2021-06-13 15:31:40 +03:00
|
|
|
2 | tupleBug (_, (_, _)) = ()
|
|
|
|
^^^^
|
2021-06-12 16:23:25 +03:00
|
|
|
|
2021-06-13 15:31:40 +03:00
|
|
|
Error: While processing left hand side of odd. Can't match on () as it must have a polymorphic type.
|
2021-06-12 16:23:25 +03:00
|
|
|
|
2021-06-13 15:31:40 +03:00
|
|
|
tuple:5:5--5:7
|
2021-06-12 16:23:25 +03:00
|
|
|
1 | tupleBug : Pair () a -> ()
|
2021-06-13 15:31:40 +03:00
|
|
|
2 | tupleBug (_, (_, _)) = ()
|
2021-06-12 16:23:25 +03:00
|
|
|
3 |
|
|
|
|
4 | odd : a -> Bool
|
|
|
|
5 | odd () = False
|
2021-06-13 15:31:40 +03:00
|
|
|
^^
|
2021-06-12 16:23:25 +03:00
|
|
|
|