tomjaguarpaw / tilapia

Improving all Haskell's programmer interfaces

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Data.ByteString should export toStrict/fromStrict

tomjaguarpaw opened this issue · comments

Data.ByteString.Lazy export toStrict/fromStrict but Data.ByteString doesn't. Why not?

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.

I suspect the definitions should be in Internal modules, and the external API modules just re-export things from there.

Great, thanks!