2020-05-19 20:25:18 +03:00
|
|
|
1/1: Building iftype (iftype.idr)
|
2020-08-16 14:20:12 +03:00
|
|
|
Error: While processing right hand side of isInListBad. Can't solve constraint between: if c then "Foo" else "Baz" and if c then "Foo" else "Bar".
|
2020-07-28 15:11:42 +03:00
|
|
|
|
2021-06-05 14:53:22 +03:00
|
|
|
iftype:15:15--15:19
|
2021-02-11 20:24:26 +03:00
|
|
|
11 | isInList = Here
|
|
|
|
12 |
|
|
|
|
13 | isInListBad : Elem (ABC Bool String (\c => if c then "Foo" else "Bar"))
|
|
|
|
14 | [(ABC Bool String (\c => if c then "Foo" else "Baz"))]
|
2020-07-22 22:16:43 +03:00
|
|
|
15 | isInListBad = Here
|
2021-02-11 20:24:26 +03:00
|
|
|
^^^^
|
2020-07-28 15:11:42 +03:00
|
|
|
|