@@ -391,12 +391,24 @@ fromASCIIBytes bs = do
392-- | Similar to `toASCIIBytes` except we produce a lazy `BL.ByteString`.
392-- | Similar to `toASCIIBytes` except we produce a lazy `BL.ByteString`.
393toLazyASCIIBytes :: UUID -> BL.ByteString
393toLazyASCIIBytes :: UUID -> BL.ByteString
394−toLazyASCIIBytes = BL.fromStrict . toASCIIBytes
394+toLazyASCIIBytes =
395+#if MIN_VERSION_bytestring(0,10,0)
398+ BL.fromChunks . return
396-- | Similar to `fromASCIIBytes` except parses from a lazy `BL.ByteString`.
402-- | Similar to `fromASCIIBytes` except parses from a lazy `BL.ByteString`.
397fromLazyASCIIBytes :: BL.ByteString -> Maybe UUID
403fromLazyASCIIBytes :: BL.ByteString -> Maybe UUID
398fromLazyASCIIBytes bs =
404fromLazyASCIIBytes bs =
399− if BL.length bs == 36 then fromASCIIBytes (BL.toStrict bs) else Nothing
405+ if BL.length bs == 36 then fromASCIIBytes (
406+#if MIN_VERSION_bytestring(0,10,0)
409+ B.concat $ BL.toChunks bs
402-- Class Instances
414-- Class Instances