summaryrefslogtreecommitdiff
path: root/bittorrent/src/Network
diff options
context:
space:
mode:
Diffstat (limited to 'bittorrent/src/Network')
-rw-r--r--bittorrent/src/Network/BitTorrent/Exchange/Message.hs5
-rw-r--r--bittorrent/src/Network/BitTorrent/Tracker/Message.hs5
2 files changed, 10 insertions, 0 deletions
diff --git a/bittorrent/src/Network/BitTorrent/Exchange/Message.hs b/bittorrent/src/Network/BitTorrent/Exchange/Message.hs
index 2c6770f7..5c096523 100644
--- a/bittorrent/src/Network/BitTorrent/Exchange/Message.hs
+++ b/bittorrent/src/Network/BitTorrent/Exchange/Message.hs
@@ -32,6 +32,7 @@
32{-# LANGUAGE GeneralizedNewtypeDeriving #-} 32{-# LANGUAGE GeneralizedNewtypeDeriving #-}
33{-# LANGUAGE DeriveDataTypeable #-} 33{-# LANGUAGE DeriveDataTypeable #-}
34{-# LANGUAGE TemplateHaskell #-} 34{-# LANGUAGE TemplateHaskell #-}
35{-# LANGUAGE CPP #-}
35{-# OPTIONS -fno-warn-orphans #-} 36{-# OPTIONS -fno-warn-orphans #-}
36module Network.BitTorrent.Exchange.Message 37module Network.BitTorrent.Exchange.Message
37 ( -- * Capabilities 38 ( -- * Capabilities
@@ -111,7 +112,11 @@ import Data.String
111import Data.Text as T 112import Data.Text as T
112import Data.Typeable 113import Data.Typeable
113import Data.Word 114import Data.Word
115#if MIN_VERSION_iproute(1,7,4)
116import Data.IP hiding (fromSockAddr)
117#else
114import Data.IP 118import Data.IP
119#endif
115import Network 120import Network
116import Network.Socket hiding (KeepAlive) 121import Network.Socket hiding (KeepAlive)
117import Text.PrettyPrint as PP hiding ((<>)) 122import Text.PrettyPrint as PP hiding ((<>))
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 @@
27{-# LANGUAGE DeriveFunctor #-} 27{-# LANGUAGE DeriveFunctor #-}
28{-# LANGUAGE ScopedTypeVariables #-} 28{-# LANGUAGE ScopedTypeVariables #-}
29{-# LANGUAGE TypeFamilies #-} 29{-# LANGUAGE TypeFamilies #-}
30{-# LANGUAGE CPP #-}
30{-# OPTIONS -fno-warn-orphans #-} 31{-# OPTIONS -fno-warn-orphans #-}
31module Network.BitTorrent.Tracker.Message 32module Network.BitTorrent.Tracker.Message
32 ( -- * Announce 33 ( -- * Announce
@@ -115,7 +116,11 @@ import Data.Text (Text)
115import Data.Text.Encoding 116import Data.Text.Encoding
116import Data.Typeable 117import Data.Typeable
117import Data.Word 118import Data.Word
119#if MIN_VERSION_iproute(1,7,4)
120import Data.IP hiding (fromSockAddr)
121#else
118import Data.IP 122import Data.IP
123#endif
119import Network 124import Network
120import Network.HTTP.Types.QueryLike 125import Network.HTTP.Types.QueryLike
121import Network.HTTP.Types.URI hiding (urlEncode) 126import Network.HTTP.Types.URI hiding (urlEncode)