diff options
Diffstat (limited to 'src/Data/BEncode/Types.hs')
-rw-r--r-- | src/Data/BEncode/Types.hs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Data/BEncode/Types.hs b/src/Data/BEncode/Types.hs index 15f570f..c1e1f01 100644 --- a/src/Data/BEncode/Types.hs +++ b/src/Data/BEncode/Types.hs | |||
@@ -7,6 +7,7 @@ | |||
7 | -- | 7 | -- |
8 | -- Types for working with bencode data. | 8 | -- Types for working with bencode data. |
9 | -- | 9 | -- |
10 | {-# LANGUAGE CPP #-} | ||
10 | module Data.BEncode.Types | 11 | module Data.BEncode.Types |
11 | ( -- * Types | 12 | ( -- * Types |
12 | BInteger | 13 | BInteger |
@@ -51,6 +52,11 @@ data BValue | |||
51 | | BDict BDict -- ^ bencode key-value dictionary. | 52 | | BDict BDict -- ^ bencode key-value dictionary. |
52 | deriving (Show, Read, Eq, Ord) | 53 | deriving (Show, Read, Eq, Ord) |
53 | 54 | ||
55 | #if !MIN_VERSION_bytestring(0,10,0) | ||
56 | instance NFData ByteString where | ||
57 | rnf s = seq s () | ||
58 | #endif | ||
59 | |||
54 | instance NFData BValue where | 60 | instance NFData BValue where |
55 | rnf (BInteger i) = rnf i | 61 | rnf (BInteger i) = rnf i |
56 | rnf (BString s) = rnf s | 62 | rnf (BString s) = rnf s |