
16 Mar
2017
16 Mar
'17
4:47 a.m.
Hi,
Obviously, this is not exclusive to ByteString. Using the same name for strict and lazy versions is all over the place. Here is another example:
https://hackage.haskell.org/package/unordered-containers/docs/Data-HashMap-L... https://hackage.haskell.org/package/unordered-containers/docs/Data-HashMap-S...
HashMaps and Maps lazy and strict do have the same type! Only the function which work on them are different. Yes, you can use a Data.HashMap.Lazy.HashMap with the Data.HashMap.Strict functions. Text however has a different type for lazy and strict (like ByteString). And yes, I agree that it's confusing. ALeX.