From 07202340d82fddc32f1cad82a437a438565cc2ba Mon Sep 17 00:00:00 2001 From: "jim@bo" Date: Wed, 20 Jun 2018 03:08:45 -0400 Subject: port to newer versions of packages: * iproute >= 1.7.4 * conduit-extra >= 1.1.7 --- bittorrent/src/Network/BitTorrent/Tracker/Message.hs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bittorrent/src/Network/BitTorrent/Tracker/Message.hs') diff --git a/bittorrent/src/Network/BitTorrent/Tracker/Message.hs b/bittorrent/src/Network/BitTorrent/Tracker/Message.hs index e01ebbf4..ab492275 100644 --- a/bittorrent/src/Network/BitTorrent/Tracker/Message.hs +++ b/bittorrent/src/Network/BitTorrent/Tracker/Message.hs @@ -27,6 +27,7 @@ {-# LANGUAGE DeriveFunctor #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeFamilies #-} +{-# LANGUAGE CPP #-} {-# OPTIONS -fno-warn-orphans #-} module Network.BitTorrent.Tracker.Message ( -- * Announce @@ -115,7 +116,11 @@ import Data.Text (Text) import Data.Text.Encoding import Data.Typeable import Data.Word +#if MIN_VERSION_iproute(1,7,4) +import Data.IP hiding (fromSockAddr) +#else import Data.IP +#endif import Network import Network.HTTP.Types.QueryLike import Network.HTTP.Types.URI hiding (urlEncode) -- cgit v1.2.3