purescript-contrib / purescript-profunctor-lenses

Pure profunctor lenses
MIT License
144 stars 52 forks source link

add Array, NonEmptyArray, List instances for At #125

Closed srghma closed 3 years ago

srghma commented 3 years ago

Is your change request related to a problem? Please describe. These instances are missing - they are present in Index class, but not in At

MonoidMusician commented 3 years ago

There can’t be instances for these types, because you can’t insert at an arbitrary index without having all of the previous indices filled, and similarly you can’t delete an index without removing all of the later elements.

srghma commented 3 years ago

right, lack of sleep, tnx