Skip to content

Commit a6d4bcb

Browse files
committed
amend cpp
1 parent c95d445 commit a6d4bcb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

benchmarks/BM.hs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ module Main
77

88
#if !MIN_VERSION_bytestring(0,10,0)
99
import Control.DeepSeq (NFData(rnf))
10-
import qualified Data.ByteString.Lazy.Internal as L
1110
#endif
1211

1312
import Criterion
@@ -86,7 +85,6 @@ main =
8685
return (a,b,c,d,e,f)
8786

8887
#if !MIN_VERSION_bytestring(0,10,0)
89-
instance NFData L.ByteString where
90-
rnf L.Empty = ()
91-
rnf (L.Chunk _ ps) = rnf ps
88+
instance NFData BS.ByteString where
89+
rnf bs = bs `seq` ()
9290
#endif

0 commit comments

Comments
 (0)