/
Win32-network.cabal
103 lines (95 loc) · 3.5 KB
/
Win32-network.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
-- Initial Win32-named-pipes.cabal generated by cabal init. For further
-- documentation, see http://haskell.org/cabal/users-guide/
name: Win32-network
version: 0.1.0.0
synopsis: Win32 network API
-- description:
license: Apache-2.0
license-files: LICENSE NOTICE
author: Duncan Coutts, Marcin Szamotulski
maintainer: duncan@well-typed.com, marcin.szamotulski@iohk.io
copyright: 2019 Input Output (Hong Kong) Ltd.
category: System
build-type: Simple
extra-source-files: include/Win32-network.h
cabal-version: >=1.10
flag demo
description: Build the named pipe demos
default: False
library
hs-source-dirs: src
if os(windows)
exposed-modules: System.IOManager
System.Win32.NamedPipes
System.Win32.Async
System.Win32.Async.File
System.Win32.Async.ErrCode
System.Win32.Async.Socket
System.Win32.Async.Socket.ByteString
System.Win32.Async.Socket.ByteString.Lazy
System.Win32.Async.Internal
other-modules: System.Win32.Async.IOData
System.Win32.Async.IOManager
System.Win32.Async.Overlapped
System.Win32.Async.Socket.Syscalls
System.Win32.Async.WSABuf
include-dirs: include
build-depends: base >= 4.5 && < 4.15,
bytestring >= 0.10 && < 0.11,
network >= 3.1.2 && < 3.2,
Win32 >= 2.5.4.1
extra-libraries: ws2_32
else
exposed-modules: System.IOManager
build-depends: base >= 4.5 && < 4.15
default-language: Haskell2010
ghc-options: -Wall
-Wcompat
-Wincomplete-uni-patterns
-Wincomplete-record-updates
-Wpartial-fields
-Widentities
-Wredundant-constraints
executable named-pipe-demo
hs-source-dirs: demo
main-is: named-pipe-demo.hs
if os(windows)
build-depends: base,
binary,
bytestring,
Win32,
Win32-network
else
build-depends: base
default-language: Haskell2010
ghc-options: -Wall
-threaded
test-suite test-Win32-network
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Main.hs
default-language: Haskell2010
if os(windows)
buildable: True
else
buildable: False
if os(windows)
other-modules: Test.Generators
Test.Async.PingPong
Test.Async.Handle
Test.Async.Socket
build-depends: async,
base,
binary,
bytestring,
network,
stm,
tasty,
tasty-hunit,
tasty-quickcheck,
QuickCheck >= 2.13.1,
quickcheck-instances,
Win32,
Win32-network
ghc-options: -Wall
-threaded