File tree Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 1
1
name : HaskellNet-SSL
2
2
synopsis : Helpers to connect to SSL/TLS mail servers with HaskellNet
3
- version : 0.3.4.1
3
+ version : 0.3.4.2
4
4
description : This package ties together the HaskellNet and connection
5
5
packages to make it easy to open IMAP and SMTP connections
6
6
over SSL.
@@ -15,10 +15,14 @@ build-type: Simple
15
15
cabal-version : >= 1.8
16
16
data-files : README.md
17
17
18
- Flag NoUpperBounds
18
+ flag NoUpperBounds
19
19
Description : Removes upper bounds from all packages
20
20
Default : False
21
21
22
+ flag network-bsd
23
+ description : Get Network.BSD from the network-bsd package
24
+ default : True
25
+
22
26
source-repository head
23
27
type : git
24
28
location : git://github.com/dpwright/HaskellNet-SSL.git
@@ -36,14 +40,17 @@ library
36
40
HaskellNet >= 0.3 ,
37
41
tls >= 1.2 ,
38
42
connection >= 0.2.7 ,
39
- network >= 2.4 ,
40
43
bytestring,
41
44
data-default
42
45
else
43
46
build-depends : base >= 4 && < 5 ,
44
47
HaskellNet >= 0.3 && < 0.6 ,
45
- tls >= 1.2 && < 1.5 ,
46
- connection >= 0.2.7 && < 0.3 ,
47
- network >= 2.4 && < 2.9 ,
48
+ tls >= 1.2 && < 1.6 ,
49
+ connection >= 0.2.7 && < 0.4 ,
48
50
bytestring,
49
51
data-default
52
+ if flag(network-bsd)
53
+ build-depends : network >= 3.0 ,
54
+ network-bsd >= 2.7
55
+ else
56
+ build-depends : network >= 2.4 && < 3.0
Original file line number Diff line number Diff line change
1
+ {-# LANGUAGE CPP #-}
1
2
module Network.HaskellNet.SSL
2
3
( Settings (.. )
3
4
, defaultSettingsWithPort
4
5
) where
5
6
7
+ #if MIN_VERSION_network(3,0,0)
8
+ import Network.Socket (PortNumber )
9
+ #else
6
10
import Network.Socket.Internal (PortNumber )
11
+ #endif
7
12
8
13
data Settings = Settings
9
14
{ sslPort :: PortNumber
You can’t perform that action at this time.
0 commit comments