uuid 1.3.1 → 1.3.2
raw patch · 4 files changed
+20/−3 lines, 4 filesdep ~bytestring
Dependency ranges changed: bytestring
Files
- CHANGES +4/−0
- CONTRIBUTORS +1/−0
- Data/UUID/Internal.hs +14/−2
- uuid.cabal +1/−1
CHANGES view
@@ -1,3 +1,7 @@+1.3.2++- Fix for building against bytestring 0.9.*+ 1.3.1 - Allow building against 'hashable' 1.1.* in addition to 1.2.*
CONTRIBUTORS view
@@ -9,3 +9,4 @@ Sergei Trofimovich davean Francesco Mazzoli+Michael Snoyman
Data/UUID/Internal.hs view
@@ -391,12 +391,24 @@ -- | Similar to `toASCIIBytes` except we produce a lazy `BL.ByteString`. toLazyASCIIBytes :: UUID -> BL.ByteString-toLazyASCIIBytes = BL.fromStrict . toASCIIBytes+toLazyASCIIBytes =+#if MIN_VERSION_bytestring(0,10,0)+ BL.fromStrict+#else+ BL.fromChunks . return+#endif+ . toASCIIBytes -- | Similar to `fromASCIIBytes` except parses from a lazy `BL.ByteString`. fromLazyASCIIBytes :: BL.ByteString -> Maybe UUID fromLazyASCIIBytes bs =- if BL.length bs == 36 then fromASCIIBytes (BL.toStrict bs) else Nothing+ if BL.length bs == 36 then fromASCIIBytes (+#if MIN_VERSION_bytestring(0,10,0)+ BL.toStrict bs+#else+ B.concat $ BL.toChunks bs+#endif+ ) else Nothing -- -- Class Instances
uuid.cabal view
@@ -1,5 +1,5 @@ Name: uuid-Version: 1.3.1+Version: 1.3.2 Copyright: (c) 2008-2013 Antoine Latter Author: Antoine Latter Maintainer: aslatter@gmail.com