From 1e66ba60301ac4fb5d3b928797551ec97d2ebd1e Mon Sep 17 00:00:00 2001 From: James Crayne Date: Tue, 15 Oct 2019 20:01:02 -0400 Subject: Remove ifdefs, drop support for base <4.8 --- torrent-types/src/Data/Torrent.hs | 5 ----- torrent-types/torrent-types.cabal | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'torrent-types') 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 -- import Control.Lens import Control.Monad import Crypto.Hash -#ifdef VERSION_bencoding import Data.BEncode as BE import Data.BEncode.Types as BE -#endif import Data.Bits -#ifdef VERSION_bits_extras -import Data.Bits.Extras -#endif import qualified Data.ByteArray as Bytes import Data.ByteString as BS 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 -- other-modules: other-extensions: CPP, NamedFieldPuns, FlexibleInstances, MultiParamTypeClasses, BangPatterns, GeneralizedNewtypeDeriving, StandaloneDeriving, DeriveDataTypeable, DeriveFunctor, DeriveFoldable, DeriveTraversable, TemplateHaskell build-depends: - base + base >= 4.8 , deepseq , memory , bytestring -- cgit v1.2.3