I got an itch last Wednesday to try out an
Either-less version of
purescript-checked-exceptions that directly uses
Variant the entire time rather than
Either (Variant rows) a.
While fumbling around with that idea, I realized it would be easier to write if I had an underlying version of
Variant that worked more like
Either. Well, a few days of tinkering later, we now have
Variant version of
In terms of performance, I’m not sure how this data type compares to using
Either (Variant rows) a due to the dictionary passing. But, it was fun to write.