Closed Philonous closed 3 years ago
It seems that the mistake is just that they shouldn't have been exported from Data.Vinyl.ARec, they are used as helper definitions for the RecElem
instance for ARec
which has a correct type (or at least not an obviously incorrect one)
aput has the following type:
In that type, the
ts'
, that is, the type of returned fields is entirely unconstrained, so it seems that we can generate an Rec of any type by using aput!And indeed:
is accepted with fatal consequences:
alens has the same problem