on e39bd39 help sign in
patch/reflex.cabal
271 lines 6.8 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.8,
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,
101 Reflex.Widget.Basic
103 ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2
104 ghc-prof-options: -fprof-auto
106 if flag(specialize-to-spidertimeline-global)
107 cpp-options: -DSPECIALIZE_TO_SPIDERTIMELINE_GLOBAL
108 else
109 exposed-modules: Reflex.Pure
111 if flag(debug-trace-events)
112 cpp-options: -DDEBUG_TRACE_EVENTS
113 build-depends: bytestring
115 if flag(use-reflex-optimizer)
116 cpp-options: -DUSE_REFLEX_OPTIMIZER
117 build-depends: ghc
118 exposed-modules: Reflex.Optimizer
120 if flag(use-template-haskell)
121 cpp-options: -DUSE_TEMPLATE_HASKELL
122 build-depends:
123 dependent-sum >= 0.3 && < 0.5,
124 haskell-src-exts >= 1.16 && < 1.19,
125 haskell-src-meta >= 0.6 && < 0.9,
126 template-haskell >= 2.9 && < 2.13
127 exposed-modules:
128 Reflex.Dynamic.TH
129 other-extensions: TemplateHaskell
130 else
131 build-depends:
132 dependent-sum == 0.4.*
134 if flag(expose-all-unfoldings)
135 ghc-options: -fexpose-all-unfoldings
137 if flag(experimental-dependent-sum-instances)
138 ghc-options: -DEXPERIMENTAL_DEPENDENT_SUM_INSTANCES
140test-suite semantics
141 type: exitcode-stdio-1.0
142 main-is: semantics.hs
143 hs-source-dirs: test
144 ghc-options: -O2 -Wall -rtsopts
145 build-depends:
146 base,
147 bifunctors,
148 containers,
149 deepseq >= 1.3 && < 1.5,
150 dependent-map,
151 dependent-sum,
152 mtl,
153 ref-tf,
154 reflex,
155 split,
156 transformers >= 0.3
157 if flag(specialize-to-spidertimeline-global)
158 buildable: False
160test-suite CrossImpl
161 type: exitcode-stdio-1.0
162 main-is: Reflex/Test/CrossImpl.hs
163 hs-source-dirs: test
164 ghc-options: -O2 -Wall -rtsopts -main-is Reflex.Test.CrossImpl.test
165 build-depends:
166 base,
167 containers,
168 dependent-map,
169 mtl,
170 ref-tf,
171 reflex
172 if flag(specialize-to-spidertimeline-global)
173 buildable: False
175test-suite hlint
176 type: exitcode-stdio-1.0
177 main-is: hlint.hs
178 hs-source-dirs: test
179 build-depends: base, hlint == 1.9.*
180 if impl(ghcjs)
181 buildable: False
183test-suite EventWriterT
184 type: exitcode-stdio-1.0
185 main-is: EventWriterT.hs
186 hs-source-dirs: test
187 build-depends: base
188 , dependent-sum
189 , transformers
190 , reflex
191 , ref-tf
193test-suite RequesterT
194 type: exitcode-stdio-1.0
195 main-is: RequesterT.hs
196 hs-source-dirs: test
197 build-depends: base
198 , dependent-sum
199 , dependent-map
200 , transformers
201 , reflex
202 , ref-tf
204test-suite GC-Semantics
205 type: exitcode-stdio-1.0
206 main-is: GC.hs
207 hs-source-dirs: test
208 if flag(specialize-to-spidertimeline-global)
209 buildable: False
210 build-depends: base
211 , dependent-sum
212 , dependent-map
213 , these
214 , transformers
215 , reflex
216 , ref-tf
217 if impl(ghc < 8)
218 build-depends: semigroups
220test-suite rootCleanup
221 type: exitcode-stdio-1.0
222 main-is: rootCleanup.hs
223 hs-source-dirs: test
224 build-depends: base
225 , reflex
227benchmark spider-bench
228 type: exitcode-stdio-1.0
229 hs-source-dirs: bench
230 main-is: Main.hs
231 ghc-options: -Wall -O2 -rtsopts
232 build-depends:
233 base,
234 criterion == 1.1.*,
235 deepseq >= 1.3 && < 1.5,
236 dependent-map,
237 dependent-sum,
238 mtl,
239 primitive,
240 reflex,
241 stm,
242 transformers >= 0.3
244benchmark saulzar-bench
245 type: exitcode-stdio-1.0
246 hs-source-dirs: bench test
247 c-sources: bench-cbits/checkCapability.c
248 main-is: RunAll.hs
249 ghc-options: -Wall -O2 -rtsopts -threaded
250 ghc-prof-options: -fprof-auto
251 build-depends:
252 base,
253 containers == 0.5.*,
254 criterion == 1.1.*,
255 deepseq >= 1.3 && < 1.5,
256 dependent-map,
257 dependent-sum,
258 loch-th,
259 mtl,
260 primitive,
261 process,
262 ref-tf,
263 reflex,
264 split,
265 stm,
266 time,
267 transformers >= 0.3
269source-repository head
270 type: git
271 location: https://github.com/reflex-frp/reflex