-- |/O(1)/ Convert a strict 'ByteString' into a lazy 'ByteString'.
--
-- sadly hack...
--
-- Because of bytestring 0.9.x version, nothing provides Lazy \<-\> Strict conversion function.
--
-- written referring to bytestring-0.10.x
fromStrict' :: P.ByteString -> BL.ByteString
fromStrict' bs | S.null bs = BLI.Empty
               | otherwise = BLI.Chunk bs BLI.Empty
fromStrict' :: P.ByteString -> BL.ByteString
fromStrict' bs | S.null bs = BLI.Empty
               | otherwise = BLI.Chunk bs BLI.Empty
fromStrict' bs | S.null bs = BLI.Empty
               | otherwise = BLI.Chunk bs BLI.Empty