summaryrefslogtreecommitdiff
path: root/Presence/ByteStringOperators.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2014-01-02 23:44:39 -0500
committerjoe <joe@jerkface.net>2014-01-02 23:44:39 -0500
commit11cfdea302aecc73485c1e86ccf41eea3bc07257 (patch)
tree58432129cc5452d0bbeece087579cbc04fed5a03 /Presence/ByteStringOperators.hs
parent9fb56130da969267a7f002e1b1db64a482a3b746 (diff)
Fixed build against newer libraries.
Diffstat (limited to 'Presence/ByteStringOperators.hs')
-rw-r--r--Presence/ByteStringOperators.hs6
1 files changed, 4 insertions, 2 deletions
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 @@
1{-# LANGUAGE CPP #-}
1module ByteStringOperators where 2module ByteStringOperators where
2 3
3import qualified Data.ByteString as S (ByteString) 4import qualified Data.ByteString as S (ByteString)
@@ -41,8 +42,9 @@ bshow :: Show a => a -> ByteString
41bshow = L.pack . show 42bshow = L.pack . show
42 43
43 44
45#if MIN_VERSION_bytestring(0,10,0)
46#else
44instance NFData L.ByteString where 47instance NFData L.ByteString where
45 rnf L.Empty = () 48 rnf L.Empty = ()
46 rnf (L.Chunk _ b) = rnf b 49 rnf (L.Chunk _ b) = rnf b
47 50#endif
48