You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If possible, please include complete self contained source files (for example by uploading to https://gist.github.com) that exhibit the issue in addition to quoting from them here. The smaller the example the better!
The issue is that (a, b) can stand both for the pair type of a & b or the
pair of values a & b whose type is a pair type. Idris disambiguates to the
wrong thing it seems.
If you explicitly annotate i by using the, you get the result you were
expecting: [ [(0, the Integer i), (i, 0)] | i <- [1..10] ].
Worth noting that Idris 1 does get this one right.
If possible, please include complete self contained source files (for example by uploading to https://gist.github.com) that exhibit the issue in addition to quoting from them here. The smaller the example the better!
Steps to Reproduce
[ [(i,0),(0,i)] | i <- [1..10] ]
in Idris REPLExpected Behavior
Observed Behavior
The text was updated successfully, but these errors were encountered: