-
Notifications
You must be signed in to change notification settings - Fork 25
/
extensible-effects.cabal
243 lines (209 loc) · 8.45 KB
/
extensible-effects.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
name: extensible-effects
-- The package version. See the Haskell package versioning policy (PVP)
-- for standards guiding when and how versions should be incremented.
-- http://www.haskell.org/haskellwiki/Package_versioning_policy
-- PVP summary: +-+------- breaking API changes
-- | | +----- non-breaking API additions
-- | | | +--- code changes with no API change
version: 5.1.0.0
-- A short (one-line) description of the package.
synopsis: An Alternative to Monad Transformers
-- A longer description of the package.
description: This package introduces datatypes for typeclass-constrained effects,
as an alternative to monad-transformer based (datatype-constrained)
approach of multi-layered effects.
Any help is appreciated!
stability: Experimental
-- URL for the project homepage or repository.
homepage: https://github.com/suhailshergill/extensible-effects
-- The license under which the package is released.
license: MIT
-- The file containing the license text.
license-file: LICENSE
-- The package author(s).
author: Oleg Kiselyov, Amr Sabry, Cameron Swords, Ben Foppa
-- An email address to which users can send suggestions, bug reports, and
-- patches.
maintainer: [email protected]
-- A copyright notice.
-- copyright:
category: Control, Effect
tested-with: GHC==8.6.3, GHC==8.4.4, GHC==8.2.2
build-type: Simple
-- Extra files to be distributed with the package, such as examples or a
-- README.
extra-source-files: README.md
-- Constraint on the version of Cabal needed to build this package.
cabal-version: >=1.10
flag lib-Werror
default: False
manual: True
flag dump-core
description: Dump HTML for the core generated by GHC during compilation
default: False
library
ghc-options: -Wall -O2
-- Modules exported by the library.
exposed-modules: Control.Eff
Control.Eff.Coroutine
Control.Eff.Example
Control.Eff.Example.Fresh
Control.Eff.Exception
Control.Eff.Logic.Core
Control.Eff.Logic.NDet
Control.Eff.Operational
Control.Eff.Operational.Example
Control.Eff.Reader.Lazy
Control.Eff.State.OnDemand
Control.Eff.Reader.Strict
Control.Eff.State.Lazy
Control.Eff.State.Strict
Control.Eff.Trace
Control.Eff.Writer.Lazy
Control.Eff.Writer.Strict
Data.OpenUnion
Control.Eff.QuickStart
Control.Eff.Extend
Control.Eff.Extend.Tutorial
-- Modules included in this library but not exported.
other-modules: Control.Eff.Internal
Data.FTCQueue
Control.Eff.Logic.Experimental
default-extensions: DataKinds
, FlexibleContexts
, FlexibleInstances
, GADTs
, MultiParamTypeClasses
, PolyKinds
, RankNTypes
, TypeOperators
-- LANGUAGE extensions used by modules in this package.
other-extensions: BangPatterns
, CPP
, DeriveDataTypeable
, DeriveFunctor
, EmptyDataDecls
, ExistentialQuantification
, FlexibleContexts
, FlexibleInstances
, FunctionalDependencies
, GeneralizedNewtypeDeriving
, KindSignatures
, MultiParamTypeClasses
, NoMonomorphismRestriction
, PatternGuards
, PolyKinds
, RankNTypes
, Safe
, ScopedTypeVariables
, TupleSections
, Trustworthy
, TypeApplications
, TypeOperators
, UndecidableInstances
-- Other library packages from which modules are imported.
build-depends: base >= 4.7 && < 5
-- For MonadBase
, transformers-base == 0.4.*
-- For MonadBaseControl
, monad-control >= 1.0 && < 1.1
-- Directories containing source files.
hs-source-dirs: src
-- Base language which the package is written in.
default-language: Haskell2010
if flag(lib-Werror)
ghc-options: -Werror
if flag(dump-core)
build-depends: dump-core
ghc-options: -fplugin=DumpCore -fplugin-opt DumpCore:core-html
test-suite extensible-effects-tests
type: exitcode-stdio-1.0
main-is: Test.hs
hs-source-dirs: test/
other-modules: Utils
, Control.Eff.Test
, Control.Eff.Coroutine.Test
, Control.Eff.Example.Test
, Control.Eff.Example.Fresh.Test
, Control.Eff.Exception.Test
, Control.Eff.Logic.NDet.Bench
, Control.Eff.Logic.NDet.Test
, Control.Eff.Logic.Test
, Control.Eff.Operational.Test
, Control.Eff.Reader.Lazy.Test
, Control.Eff.Reader.Strict.Test
, Control.Eff.State.Lazy.Test
, Control.Eff.State.OnDemand.Test
, Control.Eff.State.Strict.Test
, Control.Eff.Trace.Test
, Control.Eff.Writer.Lazy.Test
, Control.Eff.Writer.Strict.Test
, DoctestRun
ghc-options: -Wall
if impl(ghc >= 8.0)
ghc-options: -Wno-type-defaults -Wno-missing-signatures -Wno-name-shadowing
if impl(ghc < 8.0)
ghc-options: -fno-warn-type-defaults -fno-warn-missing-signatures -fno-warn-name-shadowing
build-depends:
base >= 4.7 && < 5
, QuickCheck
, HUnit
, monad-control >= 1.0
, mtl
, silently >= 1.2
, test-framework == 0.8.*
, test-framework-hunit == 0.3.*
, test-framework-quickcheck2 == 0.3.*
, test-framework-th >= 0.2
, doctest
, extensible-effects
default-language: Haskell2010
default-extensions: NoMonomorphismRestriction
, MonoLocalBinds
, FlexibleContexts
, FlexibleInstances
, GADTs
, MultiParamTypeClasses
, RankNTypes
, ScopedTypeVariables
, DataKinds
, TypeOperators
, PolyKinds
, KindSignatures
benchmark extensible-effects-benchmarks
type: exitcode-stdio-1.0
main-is: Benchmarks.hs
hs-source-dirs: benchmark/
ghc-options: -Wall -O2 -threaded -rtsopts
if impl(ghc >= 8.0)
ghc-options: -Wno-type-defaults -Wno-missing-signatures
-Wno-name-shadowing -Wno-unused-matches
if impl(ghc < 8.0)
ghc-options: -fno-warn-type-defaults -fno-warn-missing-signatures
-fno-warn-name-shadowing -fno-warn-unused-matches
build-depends:
base >= 4.7 && < 5
, criterion
, extensible-effects
, mtl
, HUnit
, test-framework == 0.8.*
, test-framework-hunit == 0.3.*
, test-framework-quickcheck2 == 0.3.*
, test-framework-th >= 0.2
default-language: Haskell2010
default-extensions: NoMonomorphismRestriction
, MonoLocalBinds
, FlexibleContexts
, FlexibleInstances
, GADTs
, MultiParamTypeClasses
, RankNTypes
, ScopedTypeVariables
, DataKinds
, TypeOperators
, PolyKinds
, KindSignatures
source-repository head
type: git
location: https://github.com/suhailshergill/extensible-effects.git