on c97e132 help sign in
patch/reflex.cabal
268 lines 6.7 kB history raw
1Name: reflex
2Version: 0.5.0
3Synopsis: Higher-order Functional Reactive Programming
4Description: Reflex is a high-performance, deterministic, higher-order Functional Reactive Programming system
5License: BSD3
6License-file: LICENSE
7Author: Ryan Trinkle
8Maintainer: ryan.trinkle@gmail.com
9Stability: Experimental
10Category: FRP
11Build-type: Simple
12Cabal-version: >=1.9.2
13homepage: https://github.com/reflex-frp/reflex
14bug-reports: https://github.com/reflex-frp/reflex/issues
16flag specialize-to-spidertimeline-global
17 description: Specialize all Reflex functions to the SpiderTimeline Global implementation. This may improve performance, but will disable all other implementations.
18 default: False
19 manual: True
21flag use-reflex-optimizer
22 description: Use the GHC plugin Reflex.Optimizer on some of the modules in the package. This is still experimental.
23 default: False
24 manual: True
26flag use-template-haskell
27 description: Use template haskell to generate lenses
28 default: True
29 manual: True
31flag expose-all-unfoldings
32 description: Build the library with -fexpose-all-unfoldings which can help client code specialize better
33 default: False
34 manual: True
36flag debug-trace-events
37 description: Add instrumentation that outputs the stack trace of the definition of an event whenever it is subscribed to. Warning: It is very slow!
38 default: False
39 manual: True
41flag experimental-dependent-sum-instances
42 description: Use experimental incoherent instances for certain forked dependent-sum typeclasses
43 default: False
44 manual: True
46library
47 hs-source-dirs: src
48 build-depends:
49 MemoTrie == 0.6.*,
50 base >= 4.7 && < 4.11,
51 bifunctors >= 5.2 && < 5.5,
52 containers == 0.5.*,
53 data-default >= 0.5 && < 0.8,
54 dependent-map >= 0.2.4 && < 0.3,
55 exception-transformers == 0.4.*,
56 lens >= 4.7 && < 5,
57 monad-control >= 1.0.1 && < 1.1,
58 mtl >= 2.1 && < 2.3,
59 prim-uniq >= 0.1.0.1 && < 0.2,
60 primitive >= 0.5 && < 0.7,
61 ref-tf == 0.4.*,
62 reflection == 2.1.*,
63 semigroupoids >= 4.0 && < 6,
64 semigroups >= 0.16 && < 0.19,
65 stm == 2.4.*,
66 syb >= 0.5 && < 0.7,
67 these >= 0.4 && < 0.8,
68 transformers >= 0.2,
69 transformers-compat >= 0.3
71 exposed-modules:
72 Data.AppendMap,
73 Data.Functor.Misc,
74 Data.WeakBag,
75 Reflex,
76 Reflex.Class,
77 Reflex.EventWriter,
78 Reflex.Dynamic,
79 Reflex.Dynamic.Uniq,
80 Reflex.DynamicWriter,
81 Reflex.FunctorMaybe,
82 Reflex.Host.Class,
83 Reflex.Patch,
84 Reflex.Patch.Class,
85 Reflex.Patch.DMap,
86 Reflex.Patch.DMapWithMove,
87 Reflex.Patch.Map,
88 Reflex.Patch.MapWithMove,
89 Reflex.TriggerEvent.Base,
90 Reflex.TriggerEvent.Class,
91 Reflex.PerformEvent.Base,
92 Reflex.PerformEvent.Class,
93 Reflex.PostBuild.Base,
94 Reflex.PostBuild.Class,
95 Reflex.Query.Base,
96 Reflex.Query.Class,
97 Reflex.Requester.Base,
98 Reflex.Requester.Class,
99 Reflex.Spider,
100 Reflex.Spider.Internal
102 ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2
103 ghc-prof-options: -fprof-auto
105 if flag(specialize-to-spidertimeline-global)
106 cpp-options: -DSPECIALIZE_TO_SPIDERTIMELINE_GLOBAL
107 else
108 exposed-modules: Reflex.Pure
110 if flag(debug-trace-events)
111 cpp-options: -DDEBUG_TRACE_EVENTS
112 build-depends: bytestring
114 if flag(use-reflex-optimizer)
115 cpp-options: -DUSE_REFLEX_OPTIMIZER
116 build-depends: ghc
117 exposed-modules: Reflex.Optimizer
119 if flag(use-template-haskell)
120 cpp-options: -DUSE_TEMPLATE_HASKELL
121 build-depends:
122 dependent-sum >= 0.3 && < 0.5,
123 haskell-src-exts >= 1.16 && < 1.19,
124 haskell-src-meta >= 0.6 && < 0.8,
125 template-haskell >= 2.9 && < 2.12
126 exposed-modules:
127 Reflex.Dynamic.TH
128 other-extensions: TemplateHaskell
129 else
130 build-depends:
131 dependent-sum == 0.4.*
133 if flag(expose-all-unfoldings)
134 ghc-options: -fexpose-all-unfoldings
136 if flag(experimental-dependent-sum-instances)
137 ghc-options: -DEXPERIMENTAL_DEPENDENT_SUM_INSTANCES
139test-suite semantics
140 type: exitcode-stdio-1.0
141 main-is: semantics.hs
142 hs-source-dirs: test
143 ghc-options: -O2 -Wall -rtsopts
144 build-depends:
145 base,
146 bifunctors,
147 containers,
148 deepseq >= 1.3 && < 1.5,
149 dependent-map,
150 dependent-sum,
151 mtl,
152 ref-tf,
153 reflex,
154 split,
155 transformers >= 0.3
156 if flag(specialize-to-spidertimeline-global)
157 buildable: False
159test-suite CrossImpl
160 type: exitcode-stdio-1.0
161 main-is: Reflex/Test/CrossImpl.hs
162 hs-source-dirs: test
163 ghc-options: -O2 -Wall -rtsopts -main-is Reflex.Test.CrossImpl.test
164 build-depends:
165 base,
166 containers,
167 dependent-map,
168 mtl,
169 ref-tf,
170 reflex
171 if flag(specialize-to-spidertimeline-global)
172 buildable: False
174test-suite hlint
175 type: exitcode-stdio-1.0
176 main-is: hlint.hs
177 hs-source-dirs: test
178 build-depends: base, hlint == 1.9.*
179 if impl(ghcjs)
180 buildable: False
182test-suite EventWriterT
183 type: exitcode-stdio-1.0
184 main-is: EventWriterT.hs
185 hs-source-dirs: test
186 build-depends: base
187 , dependent-sum
188 , transformers
189 , reflex
190 , ref-tf
192test-suite RequesterT
193 type: exitcode-stdio-1.0
194 main-is: RequesterT.hs
195 hs-source-dirs: test
196 build-depends: base
197 , dependent-sum
198 , dependent-map
199 , transformers
200 , reflex
201 , ref-tf
203test-suite GC-Semantics
204 type: exitcode-stdio-1.0
205 main-is: GC.hs
206 hs-source-dirs: test
207 if flag(specialize-to-spidertimeline-global)
208 buildable: False
209 build-depends: base
210 , dependent-sum
211 , dependent-map
212 , these
213 , transformers
214 , reflex
215 , ref-tf
217test-suite rootCleanup
218 type: exitcode-stdio-1.0
219 main-is: rootCleanup.hs
220 hs-source-dirs: test
221 build-depends: base
222 , reflex
224benchmark spider-bench
225 type: exitcode-stdio-1.0
226 hs-source-dirs: bench
227 main-is: Main.hs
228 ghc-options: -Wall -O2 -rtsopts
229 build-depends:
230 base,
231 criterion == 1.1.*,
232 deepseq >= 1.3 && < 1.5,
233 dependent-map,
234 dependent-sum,
235 mtl,
236 primitive,
237 reflex,
238 stm,
239 transformers >= 0.3
241benchmark saulzar-bench
242 type: exitcode-stdio-1.0
243 hs-source-dirs: bench test
244 c-sources: bench-cbits/checkCapability.c
245 main-is: RunAll.hs
246 ghc-options: -Wall -O2 -rtsopts -threaded
247 ghc-prof-options: -fprof-auto
248 build-depends:
249 base,
250 containers == 0.5.*,
251 criterion == 1.1.*,
252 deepseq >= 1.3 && < 1.5,
253 dependent-map,
254 dependent-sum,
255 loch-th,
256 mtl,
257 primitive,
258 process,
259 ref-tf,
260 reflex,
261 split,
262 stm,
263 time,
264 transformers >= 0.3
266source-repository head
267 type: git
268 location: https://github.com/reflex-frp/reflex