Balancing DX and Type Safety: Using `Data.TaggedEnum` and `Data.TaggedClass` Together
Our team was trying to figure out if we wanted to use
Data.TaggedEnum
Data.TaggedEnum
or individual
Data.TaggedClass
Data.TaggedClass
. We liked the DX for using class and TS keeping the name of the type as you hover instead of inlining, but having access to
$match
$match
and
$is
$is
was nice too.
I quickly discovered we can use both to kinda get both perks but since it doesn't seem documented, I wasn't sure if this was officially supported or best not to do that?