diff options
Diffstat (limited to 'Presence/ByteStringOperators.hs')
-rw-r--r-- | Presence/ByteStringOperators.hs | 6 |
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 #-} | ||
1 | module ByteStringOperators where | 2 | module ByteStringOperators where |
2 | 3 | ||
3 | import qualified Data.ByteString as S (ByteString) | 4 | import qualified Data.ByteString as S (ByteString) |
@@ -41,8 +42,9 @@ bshow :: Show a => a -> ByteString | |||
41 | bshow = L.pack . show | 42 | bshow = L.pack . show |
42 | 43 | ||
43 | 44 | ||
45 | #if MIN_VERSION_bytestring(0,10,0) | ||
46 | #else | ||
44 | instance NFData L.ByteString where | 47 | instance 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 | |||