Commits

Bryan O'Sullivan  committed 030191a

Fix build error with bytestring 0.10

  • Participants
  • Parent commits 45d8235
  • Tags 0.10.3.0

Comments (0)

Files changed (1)

File benchmarks/Benchmarks.hs

-{-# LANGUAGE BangPatterns #-}
+{-# LANGUAGE BangPatterns, CPP #-}
 
 import Control.Applicative
 import Control.DeepSeq (NFData(rnf))
 import Data.Word (Word8)
 import qualified Text.Parsec as P
 
+#if !MIN_VERSION_bytestring(0,10,0)
 instance NFData ByteString where
     rnf (PS _ _ _) = ()
+#endif
 
 instance NFData P.ParseError where
     rnf = rnf . show