diff options
author | James Crayne <jim.crayne@gmail.com> | 2019-10-15 20:01:02 -0400 |
---|---|---|
committer | Joe Crayne <joe@jerkface.net> | 2020-01-01 19:37:03 -0500 |
commit | 1e66ba60301ac4fb5d3b928797551ec97d2ebd1e (patch) | |
tree | f73cb23e2e751013ddff6a434cfc24e2a155769b /torrent-types | |
parent | 2099987d56fa6ade48d3426a261d6c0f5c6f92b9 (diff) |
Remove ifdefs, drop support for base <4.8
Diffstat (limited to 'torrent-types')
-rw-r--r-- | torrent-types/src/Data/Torrent.hs | 5 | ||||
-rw-r--r-- | torrent-types/torrent-types.cabal | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/torrent-types/src/Data/Torrent.hs b/torrent-types/src/Data/Torrent.hs index 4cad301e..56ea23af 100644 --- a/torrent-types/src/Data/Torrent.hs +++ b/torrent-types/src/Data/Torrent.hs | |||
@@ -166,14 +166,9 @@ import Control.Exception | |||
166 | -- import Control.Lens | 166 | -- import Control.Lens |
167 | import Control.Monad | 167 | import Control.Monad |
168 | import Crypto.Hash | 168 | import Crypto.Hash |
169 | #ifdef VERSION_bencoding | ||
170 | import Data.BEncode as BE | 169 | import Data.BEncode as BE |
171 | import Data.BEncode.Types as BE | 170 | import Data.BEncode.Types as BE |
172 | #endif | ||
173 | import Data.Bits | 171 | import Data.Bits |
174 | #ifdef VERSION_bits_extras | ||
175 | import Data.Bits.Extras | ||
176 | #endif | ||
177 | import qualified Data.ByteArray as Bytes | 172 | import qualified Data.ByteArray as Bytes |
178 | import Data.ByteString as BS | 173 | import Data.ByteString as BS |
179 | import Data.ByteString.Base16 as Base16 | 174 | import Data.ByteString.Base16 as Base16 |
diff --git a/torrent-types/torrent-types.cabal b/torrent-types/torrent-types.cabal index 2734e9c1..a722f0ff 100644 --- a/torrent-types/torrent-types.cabal +++ b/torrent-types/torrent-types.cabal | |||
@@ -21,7 +21,7 @@ library | |||
21 | -- other-modules: | 21 | -- other-modules: |
22 | other-extensions: CPP, NamedFieldPuns, FlexibleInstances, MultiParamTypeClasses, BangPatterns, GeneralizedNewtypeDeriving, StandaloneDeriving, DeriveDataTypeable, DeriveFunctor, DeriveFoldable, DeriveTraversable, TemplateHaskell | 22 | other-extensions: CPP, NamedFieldPuns, FlexibleInstances, MultiParamTypeClasses, BangPatterns, GeneralizedNewtypeDeriving, StandaloneDeriving, DeriveDataTypeable, DeriveFunctor, DeriveFoldable, DeriveTraversable, TemplateHaskell |
23 | build-depends: | 23 | build-depends: |
24 | base | 24 | base >= 4.8 |
25 | , deepseq | 25 | , deepseq |
26 | , memory | 26 | , memory |
27 | , bytestring | 27 | , bytestring |