1diff -ru orig/Criterion/IO.hs new/Criterion/IO.hs
2--- orig/Criterion/IO.hs 2014-02-21 06:51:14.286525542 +0200
3+++ new/Criterion/IO.hs 2014-02-21 06:51:14.000000000 +0200
5 {-# LANGUAGE OverloadedStrings #-}
8 -- Module : Criterion.IO
9 -- Copyright : (c) 2009, 2010 Bryan O'Sullivan
12 import Criterion.Types (ResultForest, ResultTree(..))
13 import Data.Binary (Binary(..), encode)
14+#if MIN_VERSION_binary(0, 6, 3)
15 import Data.Binary.Get (runGetOrFail)
17+import Data.Binary.Get (runGetState)
19 import Data.Binary.Put (putByteString, putWord16be, runPut)
20 import Data.Version (Version(..))
21 import Paths_criterion (version)
23 writeResults :: FilePath -> ResultForest -> IO ()
24 writeResults path rs = withFile path WriteMode (flip hPutResults rs)
26+#if MIN_VERSION_binary(0, 6, 3)
27 readAll :: Binary a => Handle -> IO [a]
31 Left (_, _, err) -> fail err
32 Right (bs', _, a) -> (a:) `fmap` go bs'
33 go =<< L.hGetContents handle
35+readAll :: Binary a => Handle -> IO [a]
38+ | L.null bs = return []
40+ let (a, bs', i') = runGetState get bs i
41+ in (a:) `fmap` go i' bs'
42+ go 0 =<< L.hGetContents handle
44diff -ru orig/criterion.cabal new/criterion.cabal
45--- orig/criterion.cabal 2014-02-21 06:51:14.314525543 +0200
46+++ new/criterion.cabal 2014-02-21 06:51:14.000000000 +0200
53 bytestring >= 0.9 && < 1.0,
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list