Skip to content

Commit c95d445

Browse files
committed
update bounds
1 parent 8458dc9 commit c95d445

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

base64-bytestring.cabal

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ benchmark benchmarks
8282
base
8383
, base64-bytestring
8484
, bytestring
85-
, containers
8685
, criterion
8786
, deepseq >=1.1
8887

benchmarks/BM.hs

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ module Main
55
( main
66
) where
77

8-
#if __GLASGOW_HASKELL__ < 706
8+
#if !MIN_VERSION_bytestring(0,10,0)
99
import Control.DeepSeq (NFData(rnf))
10-
#else
11-
import Control.DeepSeq ()
10+
import qualified Data.ByteString.Lazy.Internal as L
1211
#endif
1312

1413
import Criterion
@@ -86,10 +85,8 @@ main =
8685
!f = B64.encode (BS.concat $ replicate 100000 bss)
8786
return (a,b,c,d,e,f)
8887

89-
#if __GLASGOW_HASKELL__ < 706
90-
#if MIN_VERSION_bytestring(0,11,0)
91-
instance NFData ByteString where rnf BS{} = ()
92-
#else
93-
instance NFData ByteString where rnf PS{} = ()
94-
#endif
88+
#if !MIN_VERSION_bytestring(0,10,0)
89+
instance NFData L.ByteString where
90+
rnf L.Empty = ()
91+
rnf (L.Chunk _ ps) = rnf ps
9592
#endif

0 commit comments

Comments
 (0)