Generic builder for `Variant` based types
paluh opened this issue · 2 comments
paluh commented
I'm not sure if we want to bring purescript-variant
dependency here so I've created separate repo with these two helpers:
If you like them and think they should be included here I would be more than happy to open a PR. If not I would document them and publish as a separate lib and.. be happy too :-P
Thanks!
natefaubion commented
I would like to support variant
, but I would prefer to not have a dependency on heterogeneous to accomplish it.
paluh commented
(...) I would prefer to not have a dependency on heterogeneous (...)
Interesting. May I ask why?
By the way - here is a version with manual folding / mapping:
Do you think it is good enough for a PR and review?