haskus / packages

Haskus packages
https://haskus.org/
24 stars 11 forks source link

Left / Right of popVariantF/splitVariantF #10

Closed pcarbonn closed 5 years ago

pcarbonn commented 5 years ago

In popVariantF, the selected constructor is on Right, while in splitVariantF, they are in Left...

It would be more consistent to have them on the same side (but that would be a breaking change)...

hsyl20 commented 5 years ago

Tests revealed a nasty bug in splitVariant[F]. It is fixed by 36be8af41947cbef196c038ae23a4cd62e837c28. I switched Left/Right results at the same time. Release 2.2 contains the fix.