-
Notifications
You must be signed in to change notification settings - Fork 6
/
cleff.cabal
260 lines (252 loc) · 6.8 KB
/
cleff.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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.34.4.
--
-- see: https://github.com/sol/hpack
name: cleff
version: 0.3.4.0
synopsis: Fast and concise extensible effects
description: @cleff@ is an effect system for building modular, well-abstracted and performant programs. It provides:
.
- Blazing-fast speed in the majority of use cases (<#benchmarks Benchmarks>)
- Well-built integration with the existing Haskell ecosystem (@unliftio@, @monad-control@, @exceptions@...)
- Predictable behavior under expections and concurrency that does not stab you in the back
- Flexible and expressive API for power users, with first-class support of scoped effects
.
You can use @cleff@ out of the box, with little to no boilerplate. To get started, use the module "Cleff" as a
starting point.
category: Control, Effect, Language
homepage: https://github.com/re-xyr/cleff#readme
bug-reports: https://github.com/re-xyr/cleff/issues
author: Xy Ren
maintainer: [email protected]
copyright: 2021 Xy Ren
license: BSD3
license-file: LICENSE
build-type: Simple
tested-with:
GHC == 8.6.5
, GHC == 8.8.4
, GHC == 8.10.7
, GHC == 9.0.2
, GHC == 9.2.2
extra-source-files:
CHANGELOG.md
README.md
source-repository head
type: git
location: https://github.com/re-xyr/cleff
flag dynamic-ioe
description: Make @IOE@ a real effect. This is only for reference purposes and should not be enabled in production code.
manual: True
default: False
library
exposed-modules:
Cleff
Cleff.Error
Cleff.Fail
Cleff.Fresh
Cleff.Input
Cleff.Internal.Base
Cleff.Internal.Env
Cleff.Internal.Interpret
Cleff.Internal.Monad
Cleff.Internal.Stack
Cleff.Internal.TH
Cleff.Mask
Cleff.Output
Cleff.Reader
Cleff.State
Cleff.Trace
Cleff.Writer
other-modules:
Data.Any
Data.PrimVec
Data.RadixVec
Data.ThreadVar
hs-source-dirs:
src
default-extensions:
BangPatterns
BlockArguments
ConstraintKinds
DataKinds
DeriveAnyClass
DerivingStrategies
DerivingVia
EmptyCase
FlexibleContexts
FlexibleInstances
FunctionalDependencies
GADTs
GeneralizedNewtypeDeriving
LambdaCase
MagicHash
NoStarIsType
PatternSynonyms
PolyKinds
RankNTypes
RoleAnnotations
ScopedTypeVariables
StandaloneDeriving
TemplateHaskell
TupleSections
TypeApplications
TypeFamilies
TypeOperators
UndecidableInstances
UnicodeSyntax
UnliftedFFITypes
ViewPatterns
ghc-options: -Wall -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wno-unticked-promoted-constructors -Wpartial-fields -Wunused-type-patterns -Wmissing-export-lists
build-depends:
atomic-primops ==0.8.*
, base >=4.12 && <4.17
, containers >=0.5 && <0.7
, exceptions ==0.10.*
, microlens >=0.1 && <0.5
, monad-control >=1 && <1.1
, primitive >=0.6.4 && <0.8
, stm ==2.5.*
, template-haskell >=2.14 && <2.19
, th-abstraction >=0.2 && <0.5
, transformers-base ==0.4.*
, unliftio-core >=0.1.1 && <0.3
if flag(dynamic-ioe)
cpp-options: -DDYNAMIC_IOE
if impl(ghc >= 8.8)
ghc-options: -Wmissing-deriving-strategies
default-language: Haskell2010
test-suite cleff-example
type: exitcode-stdio-1.0
main-is: Main.hs
other-modules:
Broker
Filesystem
Teletype
Paths_cleff
hs-source-dirs:
example
default-extensions:
BangPatterns
BlockArguments
ConstraintKinds
DataKinds
DeriveAnyClass
DerivingStrategies
DerivingVia
EmptyCase
FlexibleContexts
FlexibleInstances
FunctionalDependencies
GADTs
GeneralizedNewtypeDeriving
LambdaCase
MagicHash
NoStarIsType
PatternSynonyms
PolyKinds
RankNTypes
RoleAnnotations
ScopedTypeVariables
StandaloneDeriving
TemplateHaskell
TupleSections
TypeApplications
TypeFamilies
TypeOperators
UndecidableInstances
UnicodeSyntax
UnliftedFFITypes
ViewPatterns
ghc-options: -Wall -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wno-unticked-promoted-constructors -Wpartial-fields -Wunused-type-patterns -threaded -rtsopts -with-rtsopts=-N
build-depends:
atomic-primops ==0.8.*
, base >=4.12 && <4.17
, cleff
, containers >=0.5 && <0.7
, exceptions ==0.10.*
, extra
, microlens >=0.1 && <0.5
, monad-control >=1 && <1.1
, primitive >=0.6.4 && <0.8
, stm ==2.5.*
, template-haskell >=2.14 && <2.19
, th-abstraction >=0.2 && <0.5
, transformers-base ==0.4.*
, unliftio
, unliftio-core >=0.1.1 && <0.3
if flag(dynamic-ioe)
cpp-options: -DDYNAMIC_IOE
if impl(ghc >= 8.8)
ghc-options: -Wmissing-deriving-strategies
default-language: Haskell2010
test-suite cleff-test
type: exitcode-stdio-1.0
main-is: Main.hs
other-modules:
ConcurrencySpec
ErrorSpec
HigherOrderSpec
InterposeSpec
MaskSpec
StateSpec
ThSpec
Paths_cleff
hs-source-dirs:
test
default-extensions:
BangPatterns
BlockArguments
ConstraintKinds
DataKinds
DeriveAnyClass
DerivingStrategies
DerivingVia
EmptyCase
FlexibleContexts
FlexibleInstances
FunctionalDependencies
GADTs
GeneralizedNewtypeDeriving
LambdaCase
MagicHash
NoStarIsType
PatternSynonyms
PolyKinds
RankNTypes
RoleAnnotations
ScopedTypeVariables
StandaloneDeriving
TemplateHaskell
TupleSections
TypeApplications
TypeFamilies
TypeOperators
UndecidableInstances
UnicodeSyntax
UnliftedFFITypes
ViewPatterns
ghc-options: -Wall -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wno-unticked-promoted-constructors -Wpartial-fields -Wunused-type-patterns -threaded -rtsopts -with-rtsopts=-N
build-depends:
atomic-primops ==0.8.*
, base >=4.12 && <4.17
, cleff
, containers >=0.5 && <0.7
, exceptions ==0.10.*
, extra
, hspec
, lifted-base
, microlens >=0.1 && <0.5
, monad-control >=1 && <1.1
, primitive >=0.6.4 && <0.8
, stm ==2.5.*
, template-haskell >=2.14 && <2.19
, th-abstraction >=0.2 && <0.5
, transformers-base ==0.4.*
, unliftio
, unliftio-core >=0.1.1 && <0.3
if flag(dynamic-ioe)
cpp-options: -DDYNAMIC_IOE
if impl(ghc >= 8.8)
ghc-options: -Wmissing-deriving-strategies
default-language: Haskell2010