Closed Cmdv closed 4 years ago
yeah i think you're going to be stuck with writing it out manually, unless you come up with some kind of bidirectional thing. but this is also where i ended up using my other library for converting sums to variant and such to use the inferred instances: https://github.com/justinwoo/purescript-kishimen#usage
probably this should be mentioned somewhere in the docs but im a bit too lazy
hahaha that's all good can't write everything. Ah nice you have genericSumToVariant
that's perfect was more interested in getting type safety for these sum types when throwing them to and from an external API. Thank 👍
oh a side note I could do something like you did here
I've created an
enumReadForeign
from reading the docs but I'm wondering if I would have to do something similar to account for thefrom
or is there a simpler way?