Open mlutze opened 2 years ago
Wrap with phantom types? Then fold/unfold in generated functions.
opaque type Generic1[t, a1] = t
opaque type Generic2[t, a1, a2] = t
...
May require fcwg-interface
installable package or something.
Wrap with phantom types? Then fold/unfold in generated functions.
opaque type Generic1[t, a1] = t opaque type Generic2[t, a1, a2] = t ...
May require
fcwg-interface
installable package or something.
Downside: probably can't define typeclasses for these types?
(Can Flix even handle generics?)