diff options
author | joe <joe@jerkface.net> | 2014-01-02 23:44:39 -0500 |
---|---|---|
committer | joe <joe@jerkface.net> | 2014-01-02 23:44:39 -0500 |
commit | 11cfdea302aecc73485c1e86ccf41eea3bc07257 (patch) | |
tree | 58432129cc5452d0bbeece087579cbc04fed5a03 /Presence/ByteStringOperators.hs | |
parent | 9fb56130da969267a7f002e1b1db64a482a3b746 (diff) |
Fixed build against newer libraries.
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 | |||