-
Notifications
You must be signed in to change notification settings - Fork 0
/
attoparsec-framer.cabal
122 lines (107 loc) · 3.71 KB
/
attoparsec-framer.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
cabal-version: 3.0
name: attoparsec-framer
version: 0.1.0.8
synopsis: Use Attoparsec to parse framed protocol byte streams
description:
A library that simplifies the use of
[Attoparsec](https://hackage.haskell.org/package/attoparsec) when processing
framed protocol byte streams.
As well as reading the haddocks, please take a look at a
[demo server](https://github.com/adetokunbo/attoparsec-framer/blob/main/toy/Server.hs)
and [client](https://github.com/adetokunbo/attoparsec-framer/blob/main/toy/Client.hs)
as working examples.
license: BSD-3-Clause
license-file: LICENSE
author: Tim Emiola
maintainer: adetokunbo@emio.la
category: Parsing, Attoparsec, Network API
homepage: https://github.com/adetokunbo/attoparsec-framer#readme
bug-reports: https://github.com/adetokunbo/attoparsec-framer/issues
build-type: Simple
extra-source-files: ChangeLog.md
tested-with: GHC ==8.10.7 || ==9.0.2 || ==9.2.8 || ==9.4.8 || ==9.6.6 || ==9.8.2 || ==9.10.1
source-repository head
type: git
location: https://github.com/adetokunbo/attoparsec-framer.git
library
exposed-modules:
Data.Attoparsec.Framer
Data.Attoparsec.Framer.Testing
hs-source-dirs: src
build-depends:
, attoparsec >=0.14.4 && <0.15
, base >=4.10 && <5
, bytestring >=0.10.8.2 && <0.13
, exceptions >= 0.10.4 && < 0.11
, text >=1.2.3 && <2.2
default-language: Haskell2010
ghc-options:
-Wall -Wincomplete-uni-patterns -Wpartial-fields -fwarn-tabs
Flag profile-the-exes
description: Switch on profiling for the executables
default: False
-- toy-server serves a simple framed protocol
executable toy-server
main-is: Server.hs
other-modules:
Attoparsec.ToyFrame
build-depends:
, attoparsec >=0.14.4 && <0.15
, attoparsec-binary >=0.2 && <0.3
, attoparsec-framer
, exceptions >= 0.10.4 && < 0.11
, base >=4.10 && <5
, bytestring >=0.10.8.2 && <0.13
, network >=3.1.0 && <4
, network-run >=0.2.2 && <0.4
, text >=1.2.3 && <2.2
, QuickCheck >= 2.13 && < 2.16
hs-source-dirs: toy
default-language: Haskell2010
ghc-options: -threaded -rtsopts -with-rtsopts=-N
ghc-options:
-Wall -Wincomplete-uni-patterns -Wpartial-fields -fwarn-tabs
if flag(profile-the-exes)
ghc-options: -fprof-auto
-- toy-client accesses a simple framed protocol
executable toy-client
main-is: Client.hs
other-modules:
Attoparsec.ToyFrame
build-depends:
, attoparsec >=0.14.4 && <0.15
, attoparsec-binary >=0.2 && <0.3
, attoparsec-framer
, base >=4.10 && <5
, bytestring >=0.10.8.2 && <0.13
, network >=3.1.0 && <4
, network-run >=0.2.2 && <0.4
, text >=1.2.3 && <2.2
, QuickCheck >= 2.13 && < 2.16
hs-source-dirs: toy
default-language: Haskell2010
ghc-options: -threaded -rtsopts -with-rtsopts=-N
ghc-options:
-Wall -Wincomplete-uni-patterns -Wpartial-fields -fwarn-tabs
if flag(profile-the-exes)
ghc-options: -fprof-auto
test-suite unittests
type: exitcode-stdio-1.0
main-is: Spec.hs
other-modules:
Attoparsec.ToyFrame
Attoparsec.ToyFrameSpec
hs-source-dirs: test toy
build-depends:
, attoparsec
, attoparsec-binary
, attoparsec-framer
, exceptions
, base
, bytestring
, hspec
, QuickCheck
, text
default-language: Haskell2010
ghc-options:
-Wall -Wincomplete-uni-patterns -Wpartial-fields -fwarn-tabs