Data.ByteString should export toStrict/fromStrict
tomjaguarpaw opened this issue · comments
tomjaguarpaw commented
Data.ByteString.Lazy
export toStrict
/fromStrict
but Data.ByteString
doesn't. Why not?
Ignat Insarov commented
Because Data.ByteString.Lazy
imports Data.ByteString
and importing also the other way around will make imports cyclic. There is a provision for cyclic imports in GHC, so in principle it is possible to fix this issue.
tomjaguarpaw commented
I suspect the definitions should be in Internal
modules, and the external API modules just re-export things from there.
ˌbodʲɪˈɡrʲim commented
tomjaguarpaw commented
Great, thanks!