From 11cfdea302aecc73485c1e86ccf41eea3bc07257 Mon Sep 17 00:00:00 2001 From: joe Date: Thu, 2 Jan 2014 23:44:39 -0500 Subject: Fixed build against newer libraries. --- Presence/ByteStringOperators.hs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Presence/ByteStringOperators.hs') diff --git a/Presence/ByteStringOperators.hs b/Presence/ByteStringOperators.hs index 9e6cc938..4453aca0 100644 --- a/Presence/ByteStringOperators.hs +++ b/Presence/ByteStringOperators.hs @@ -1,3 +1,4 @@ +{-# LANGUAGE CPP #-} module ByteStringOperators where import qualified Data.ByteString as S (ByteString) @@ -41,8 +42,9 @@ bshow :: Show a => a -> ByteString bshow = L.pack . show +#if MIN_VERSION_bytestring(0,10,0) +#else instance NFData L.ByteString where rnf L.Empty = () rnf (L.Chunk _ b) = rnf b - - +#endif -- cgit v1.2.3