but it would be better to make that opaque and a non-union type:
Rbt := { default : Job }
Problem is, glue can not see through module boundaries right now so making that change in Package-Config.roc would mean that the API in Rbt.roc could not construct values!
Once glue can see through module boundaries, this should be trivial to fix (and should simplify the generated glue code a lot!)
Right now we have to do things like:
but it would be better to make that opaque and a non-union type:
Problem is, glue can not see through module boundaries right now so making that change in
Package-Config.roc
would mean that the API inRbt.roc
could not construct values!Once glue can see through module boundaries, this should be trivial to fix (and should simplify the generated glue code a lot!)