You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a lot of primop wrappers in Data.ByteString.Short.Internal that are already in primitive. Can we use primitive instead of duplicating this code? I think it would also be useful if type ShortByteString = ByteArray.
The text was updated successfully, but these errors were encountered:
The duplication is a bit unfortunate but isn't causing any real pain. I would have no particular objection to primitive becoming a boot library so that bytestring and other boot libraries can depend on it, but unless that happens I don't think there is anything actionable here. I don't think this issue tracker is a good venue for further discussion on this topic; perhaps try asking around at the ghc-devs or libraries mailing lists if you wish to discuss this further.
(Regarding your type ShortByteString = ByteArray suggestion: I don't think this will ever happen; their instances do not agree perfectly. But a newtype wrapper is still up for discussion: see #410.)
There are a lot of primop wrappers in
Data.ByteString.Short.Internal
that are already inprimitive
. Can we useprimitive
instead of duplicating this code? I think it would also be useful iftype ShortByteString = ByteArray
.The text was updated successfully, but these errors were encountered: