diff options
author | James Crayne <jim.crayne@gmail.com> | 2019-09-28 15:49:38 -0400 |
---|---|---|
committer | Joe Crayne <joe@jerkface.net> | 2020-01-01 19:33:47 -0500 |
commit | 68d700fa49f3e4f63d69a85db01ba49f2fbc5aef (patch) | |
tree | 2ed046dac9d48c304565f580c784c0194f003dcd /torrent-types | |
parent | f6c5c0c7420ffff741ade3127a83431bb9eb77d4 (diff) |
allow newer network package
Diffstat (limited to 'torrent-types')
-rw-r--r-- | torrent-types/src/Data/.Torrent.hs.swp | bin | 57344 -> 0 bytes | |||
-rw-r--r-- | torrent-types/src/Data/Torrent.hs | 4 | ||||
-rw-r--r-- | torrent-types/torrent-types.cabal | 2 |
3 files changed, 5 insertions, 1 deletions
diff --git a/torrent-types/src/Data/.Torrent.hs.swp b/torrent-types/src/Data/.Torrent.hs.swp deleted file mode 100644 index 0aecaad6..00000000 --- a/torrent-types/src/Data/.Torrent.hs.swp +++ /dev/null | |||
Binary files differ | |||
diff --git a/torrent-types/src/Data/Torrent.hs b/torrent-types/src/Data/Torrent.hs index a1eb286c..4cad301e 100644 --- a/torrent-types/src/Data/Torrent.hs +++ b/torrent-types/src/Data/Torrent.hs | |||
@@ -196,7 +196,11 @@ import Data.Text.Encoding as T | |||
196 | import Data.Text.Read | 196 | import Data.Text.Read |
197 | import Data.Time.Clock.POSIX | 197 | import Data.Time.Clock.POSIX |
198 | import Data.Typeable | 198 | import Data.Typeable |
199 | #if MIN_VERSION_network(2,7,0) | ||
200 | import Network.Socket (HostName) | ||
201 | #else | ||
199 | import Network (HostName) | 202 | import Network (HostName) |
203 | #endif | ||
200 | import Network.HTTP.Types.QueryLike | 204 | import Network.HTTP.Types.QueryLike |
201 | import Network.HTTP.Types.URI | 205 | import Network.HTTP.Types.URI |
202 | import Network.URI | 206 | import Network.URI |
diff --git a/torrent-types/torrent-types.cabal b/torrent-types/torrent-types.cabal index c5939983..f06d75ef 100644 --- a/torrent-types/torrent-types.cabal +++ b/torrent-types/torrent-types.cabal | |||
@@ -31,7 +31,7 @@ library | |||
31 | , containers | 31 | , containers |
32 | , text | 32 | , text |
33 | , time | 33 | , time |
34 | , network < 2.7 | 34 | , network |
35 | , network-addr | 35 | , network-addr |
36 | , data-default | 36 | , data-default |
37 | , network-uri | 37 | , network-uri |