File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,6 @@ benchmark benchmarks
82
82
base
83
83
, base64-bytestring
84
84
, bytestring
85
- , containers
86
85
, criterion
87
86
, deepseq >= 1.1
88
87
Original file line number Diff line number Diff line change @@ -5,10 +5,9 @@ module Main
5
5
( main
6
6
) where
7
7
8
- #if __GLASGOW_HASKELL__ < 706
8
+ #if !MIN_VERSION_bytestring(0,10,0)
9
9
import Control.DeepSeq (NFData (rnf ))
10
- #else
11
- import Control.DeepSeq ()
10
+ import qualified Data.ByteString.Lazy.Internal as L
12
11
#endif
13
12
14
13
import Criterion
@@ -86,10 +85,8 @@ main =
86
85
! f = B64. encode (BS. concat $ replicate 100000 bss)
87
86
return (a,b,c,d,e,f)
88
87
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
95
92
#endif
You can’t perform that action at this time.
0 commit comments