Skip to content

Commit 45f2970

Browse files
committed
using cabal format
1 parent 8446665 commit 45f2970

File tree

1 file changed

+182
-162
lines changed

1 file changed

+182
-162
lines changed

network.cabal

Lines changed: 182 additions & 162 deletions
Original file line numberDiff line numberDiff line change
@@ -1,174 +1,194 @@
1-
cabal-version: 1.18
2-
name: network
3-
version: 3.1.2.8
4-
license: BSD3
5-
license-file: LICENSE
6-
maintainer: Kazu Yamamoto, Evan Borden
7-
synopsis: Low-level networking interface
1+
cabal-version: 1.18
2+
name: network
3+
version: 3.1.2.8
4+
license: BSD3
5+
license-file: LICENSE
6+
maintainer: Kazu Yamamoto, Evan Borden
7+
tested-with:
8+
ghc ==8.0.2 ghc ==8.2.2 ghc ==8.4.4 ghc ==8.6.5 ghc ==8.8.3
9+
ghc ==8.10.1
10+
11+
homepage: https://github.com/haskell/network
12+
bug-reports: https://github.com/haskell/network/issues
13+
synopsis: Low-level networking interface
814
description:
9-
This package provides a low-level networking interface.
10-
.
11-
=== High-Level Packages
12-
Other packages provide higher level interfaces:
13-
.
14-
* connection
15-
* hookup
16-
* network-simple
17-
.
18-
=== Extended Packages
19-
@network@ seeks to provide a cross-platform core for networking. As such some
20-
APIs live in extended libraries. Packages in the @network@ ecosystem are
21-
often prefixed with @network-@.
22-
.
23-
==== @network-bsd@
24-
In @network-3.0.0.0@ the @Network.BSD@ module was split off into its own
25-
package, @network-bsd-3.0.0.0@.
26-
.
27-
==== @network-uri@
28-
In @network-2.6@ the @Network.URI@ module was split off into its own package,
29-
@network-uri-2.6@. If you're using the @Network.URI@ module you can
30-
automatically get it from the right package by adding this to your @.cabal@
31-
file:
32-
.
33-
> library
34-
> build-depends: network-uri-flag
35-
category: Network
36-
build-type: Configure
37-
extra-tmp-files:
38-
config.log config.status autom4te.cache network.buildinfo
39-
include/HsNetworkConfig.h
15+
This package provides a low-level networking interface.
16+
.
17+
=== High-Level Packages
18+
Other packages provide higher level interfaces:
19+
.
20+
* connection
21+
* hookup
22+
* network-simple
23+
.
24+
=== Extended Packages
25+
@network@ seeks to provide a cross-platform core for networking. As such some
26+
APIs live in extended libraries. Packages in the @network@ ecosystem are
27+
often prefixed with @network-@.
28+
.
29+
==== @network-bsd@
30+
In @network-3.0.0.0@ the @Network.BSD@ module was split off into its own
31+
package, @network-bsd-3.0.0.0@.
32+
.
33+
==== @network-uri@
34+
In @network-2.6@ the @Network.URI@ module was split off into its own package,
35+
@network-uri-2.6@. If you're using the @Network.URI@ module you can
36+
automatically get it from the right package by adding this to your @.cabal@
37+
file:
38+
.
39+
> library
40+
> build-depends: network-uri-flag
41+
42+
category: Network
43+
build-type: Configure
4044
extra-source-files:
41-
README.md CHANGELOG.md
42-
examples/*.hs tests/*.hs config.guess config.sub install-sh
43-
configure.ac configure
44-
include/HsNetworkConfig.h.in include/HsNet.h include/HsNetDef.h
45-
-- C sources only used on some systems
46-
cbits/asyncAccept.c cbits/initWinSock.c
47-
cbits/winSockErr.c cbits/cmsg.c
48-
homepage: https://github.com/haskell/network
49-
bug-reports: https://github.com/haskell/network/issues
50-
tested-with: GHC == 8.0.2
51-
, GHC == 8.2.2
52-
, GHC == 8.4.4
53-
, GHC == 8.6.5
54-
, GHC == 8.8.3
55-
, GHC == 8.10.1
45+
README.md
46+
CHANGELOG.md
47+
examples/*.hs
48+
tests/*.hs
49+
config.guess
50+
config.sub
51+
install-sh
52+
configure.ac
53+
configure
54+
include/HsNetworkConfig.h.in
55+
include/HsNet.h
56+
include/HsNetDef.h
57+
cbits/asyncAccept.c
58+
cbits/initWinSock.c
59+
cbits/winSockErr.c
60+
cbits/cmsg.c
61+
62+
extra-tmp-files:
63+
config.log
64+
config.status
65+
autom4te.cache
66+
network.buildinfo
67+
include/HsNetworkConfig.h
68+
69+
source-repository head
70+
type: git
71+
location: git://github.com/haskell/network.git
5672

5773
flag devel
58-
description: using tests for developers
59-
default: False
74+
description: using tests for developers
75+
default: False
6076

6177
library
62-
default-language: Haskell2010
63-
exposed-modules:
64-
Network.Socket
65-
Network.Socket.Address
66-
Network.Socket.ByteString
67-
Network.Socket.ByteString.Lazy
68-
Network.Socket.Internal
69-
other-modules:
70-
Network.Socket.Buffer
71-
Network.Socket.ByteString.IO
72-
Network.Socket.ByteString.Internal
73-
Network.Socket.Cbits
74-
Network.Socket.Fcntl
75-
Network.Socket.Flag
76-
Network.Socket.Handle
77-
Network.Socket.If
78-
Network.Socket.Imports
79-
Network.Socket.Info
80-
Network.Socket.Name
81-
Network.Socket.Options
82-
Network.Socket.ReadShow
83-
Network.Socket.Shutdown
84-
Network.Socket.SockAddr
85-
Network.Socket.Syscall
86-
Network.Socket.Types
87-
Network.Socket.Unix
88-
89-
build-depends:
90-
base >= 4.9 && < 5,
91-
bytestring >= 0.10 && < 0.12,
92-
deepseq,
93-
directory
94-
95-
include-dirs: include
96-
includes: HsNet.h HsNetDef.h alignment.h win32defs.h
97-
install-includes: HsNet.h HsNetDef.h alignment.h win32defs.h
98-
c-sources: cbits/HsNet.c cbits/cmsg.c
99-
ghc-options: -Wall -fwarn-tabs
100-
build-tools: hsc2hs
101-
102-
103-
-- Add some platform specific stuff
104-
if !os(windows)
105-
other-modules:
106-
Network.Socket.ByteString.Lazy.Posix
107-
Network.Socket.Posix.Cmsg
108-
Network.Socket.Posix.CmsgHdr
109-
Network.Socket.Posix.IOVec
110-
Network.Socket.Posix.MsgHdr
111-
112-
if os(solaris)
113-
extra-libraries: nsl, socket
114-
cpp-options: -D__EXTENSIONS__ -D_XOPEN_SOURCE=500
115-
cc-options: -D__EXTENSIONS__ -D_XOPEN_SOURCE=500
116-
117-
if os(windows)
78+
exposed-modules:
79+
Network.Socket
80+
Network.Socket.Address
81+
Network.Socket.ByteString
82+
Network.Socket.ByteString.Lazy
83+
Network.Socket.Internal
84+
85+
build-tools: hsc2hs >=0
86+
c-sources:
87+
cbits/HsNet.c
88+
cbits/cmsg.c
89+
11890
other-modules:
119-
Network.Socket.ByteString.Lazy.Windows
120-
Network.Socket.Win32.Cmsg
121-
Network.Socket.Win32.CmsgHdr
122-
Network.Socket.Win32.WSABuf
123-
Network.Socket.Win32.MsgHdr
124-
c-sources: cbits/initWinSock.c, cbits/winSockErr.c, cbits/asyncAccept.c
125-
extra-libraries: ws2_32, iphlpapi, mswsock
126-
-- See https://github.com/haskell/network/pull/362
127-
if impl(ghc >= 7.10)
128-
cpp-options: -D_WIN32_WINNT=0x0600
129-
cc-options: -D_WIN32_WINNT=0x0600
91+
Network.Socket.Buffer
92+
Network.Socket.ByteString.IO
93+
Network.Socket.ByteString.Internal
94+
Network.Socket.Cbits
95+
Network.Socket.Fcntl
96+
Network.Socket.Flag
97+
Network.Socket.Handle
98+
Network.Socket.If
99+
Network.Socket.Imports
100+
Network.Socket.Info
101+
Network.Socket.Name
102+
Network.Socket.Options
103+
Network.Socket.ReadShow
104+
Network.Socket.Shutdown
105+
Network.Socket.SockAddr
106+
Network.Socket.Syscall
107+
Network.Socket.Types
108+
Network.Socket.Unix
130109

131-
test-suite spec
132-
default-language: Haskell2010
133-
hs-source-dirs: tests
134-
main-is: Spec.hs
135-
if flag(devel)
136-
cpp-options: -DDEVELOPMENT
137-
other-modules:
138-
Network.Test.Common
139-
Network.SocketSpec
140-
Network.Socket.ByteStringSpec
141-
Network.Socket.ByteString.LazySpec
142-
type: exitcode-stdio-1.0
143-
ghc-options: -Wall -threaded
144-
-- NB: make sure to versions of hspec and hspec-discover
145-
-- that work together; easiest way is to constraint
146-
-- both packages to a small enough version range.
147-
build-tools: hspec-discover >= 2.6
148-
build-depends:
149-
base >= 4.9 && < 5,
150-
bytestring,
151-
directory,
152-
HUnit,
153-
network,
154-
temporary,
155-
hspec >= 2.6,
156-
QuickCheck
110+
default-language: Haskell2010
111+
include-dirs: include
112+
includes: HsNet.h HsNetDef.h alignment.h win32defs.h
113+
install-includes: HsNet.h HsNetDef.h alignment.h win32defs.h
114+
ghc-options: -Wall -fwarn-tabs
115+
build-depends:
116+
base >=4.9 && <5,
117+
bytestring >=0.10 && <0.12,
118+
deepseq,
119+
directory
157120

158-
test-suite doctests
159-
buildable: False
160-
default-language: Haskell2010
161-
hs-source-dirs: tests
162-
main-is: doctests.hs
163-
type: exitcode-stdio-1.0
121+
if !os(windows)
122+
other-modules:
123+
Network.Socket.ByteString.Lazy.Posix
124+
Network.Socket.Posix.Cmsg
125+
Network.Socket.Posix.CmsgHdr
126+
Network.Socket.Posix.IOVec
127+
Network.Socket.Posix.MsgHdr
164128

165-
build-depends:
166-
base >= 4.9 && < 5,
167-
doctest >= 0.10.1,
168-
network
129+
if os(solaris)
130+
cpp-options: -D__EXTENSIONS__ -D_XOPEN_SOURCE=500
131+
cc-options: -D__EXTENSIONS__ -D_XOPEN_SOURCE=500
132+
extra-libraries:
133+
nsl
134+
socket
169135

170-
ghc-options: -Wall
136+
if os(windows)
137+
c-sources:
138+
cbits/initWinSock.c
139+
cbits/winSockErr.c
140+
cbits/asyncAccept.c
171141

172-
source-repository head
173-
type: git
174-
location: git://github.com/haskell/network.git
142+
other-modules:
143+
Network.Socket.ByteString.Lazy.Windows
144+
Network.Socket.Win32.Cmsg
145+
Network.Socket.Win32.CmsgHdr
146+
Network.Socket.Win32.WSABuf
147+
Network.Socket.Win32.MsgHdr
148+
149+
extra-libraries:
150+
ws2_32
151+
iphlpapi
152+
mswsock
153+
154+
if impl(ghc >=7.10)
155+
cpp-options: -D_WIN32_WINNT=0x0600
156+
cc-options: -D_WIN32_WINNT=0x0600
157+
158+
test-suite spec
159+
type: exitcode-stdio-1.0
160+
main-is: Spec.hs
161+
build-tools: hspec-discover >=2.6
162+
hs-source-dirs: tests
163+
other-modules:
164+
Network.Test.Common
165+
Network.SocketSpec
166+
Network.Socket.ByteStringSpec
167+
Network.Socket.ByteString.LazySpec
168+
169+
default-language: Haskell2010
170+
ghc-options: -Wall -threaded
171+
build-depends:
172+
base >=4.9 && <5,
173+
bytestring,
174+
directory,
175+
HUnit,
176+
network,
177+
temporary,
178+
hspec >=2.6,
179+
QuickCheck
180+
181+
if flag(devel)
182+
cpp-options: -DDEVELOPMENT
183+
184+
test-suite doctests
185+
type: exitcode-stdio-1.0
186+
main-is: doctests.hs
187+
buildable: False
188+
hs-source-dirs: tests
189+
default-language: Haskell2010
190+
ghc-options: -Wall
191+
build-depends:
192+
base >=4.9 && <5,
193+
doctest >=0.10.1,
194+
network

0 commit comments

Comments
 (0)