on master help sign in
Updated bytes patch
commita462a8ba1f61256d89bf8cc3e811c77f17438755 authorMichael Snoyman <michael@snoyman.com> dateMon 2 Sep 2013, 11:35 (13 years ago) parent8e86316
2 files changed+17−13
patching/patches/bytes-0.11.3.patch−13 patching/patches/bytes-0.11.4.patch+17
patching/patches/bytes-0.11.3.patchdeleted−13
@@ -1,13 +0,0 @@
1−diff -ru orig/tests/doctests.hsc new/tests/doctests.hsc
2−--- orig/tests/doctests.hsc 2013-09-02 08:40:59.176527818 +0300
3−+++ new/tests/doctests.hsc 2013-09-02 08:40:59.000000000 +0300
4−@@ -59,7 +59,8 @@
5− : "-optPdist/build/autogen/cabal_macros.h"
6− : "-hide-all-packages"
7− : "-Iincludes"
8−- : map ("-package="++) deps ++ sources
9−+ : "dist/build/cbits/i2d.o"
10−+ : map ("-package="++) (filter (not . ("bytes-" `isPrefixOf`)) deps) ++ sources
11−
12− getSources :: IO [FilePath]
13− getSources = filter (isSuffixOf ".hs") <$> go "src"
patching/patches/bytes-0.11.4.patchnew file+17
@@ -0,0 +1,17 @@
1+diff -ru orig/src/Data/Bytes/VarInt.hs new/src/Data/Bytes/VarInt.hs
2+--- orig/src/Data/Bytes/VarInt.hs 2013-09-02 11:35:18.532306195 +0300
3++++ new/src/Data/Bytes/VarInt.hs 2013-09-02 11:35:18.000000000 +0300
4+@@ -36,9 +36,11 @@
5+
6+ -- | Integer/Word types serialized to base-128 variable-width ints.
7+ --
8+--- >>> runPutL $ serialize (97 :: Word64)
9++-- >>> import Data.Monoid (mconcat)
10++-- >>> import Data.ByteString.Lazy (toChunks)
11++-- >>> mconcat $ toChunks $ runPutL $ serialize (97 :: Word64)
12+ -- "\NUL\NUL\NUL\NUL\NUL\NUL\NULa"
13+--- >>> runPutL $ serialize (97 :: VarInt Word64)
14++-- >>> mconcat $ toChunks $ runPutL $ serialize (97 :: VarInt Word64)
15+ -- "a"
16+ newtype VarInt n = VarInt { unVarInt :: n }
17+ deriving (Eq, Ord, Show, Enum, Num, Integral, Bounded, Real, Bits)