on triggereventt-improvements help sign in
reflex/reflex.cabal
250 lines 6.3 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.Functor.Misc,
73 Data.WeakBag,
74 Reflex,
75 Reflex.Class,
76 Reflex.EventWriter,
77 Reflex.Dynamic,
78 Reflex.Dynamic.Uniq,
79 Reflex.DynamicWriter,
80 Reflex.FunctorMaybe,
81 Reflex.Host.Class,
82 Reflex.Patch,
83 Reflex.Patch.Class,
84 Reflex.Patch.DMap,
85 Reflex.Patch.DMapWithMove,
86 Reflex.Patch.Map,
87 Reflex.Patch.MapWithMove,
88 Reflex.TriggerEvent.Base,
89 Reflex.TriggerEvent.Class,
90 Reflex.PerformEvent.Base,
91 Reflex.PerformEvent.Class,
92 Reflex.PostBuild.Base,
93 Reflex.PostBuild.Class,
94 Reflex.Requester.Base,
95 Reflex.Requester.Class,
96 Reflex.Spider,
97 Reflex.Spider.Internal
99 ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2
100 ghc-prof-options: -fprof-auto
102 if flag(specialize-to-spidertimeline-global)
103 cpp-options: -DSPECIALIZE_TO_SPIDERTIMELINE_GLOBAL
104 else
105 exposed-modules: Reflex.Pure
107 if flag(debug-trace-events)
108 cpp-options: -DDEBUG_TRACE_EVENTS
109 build-depends: bytestring
111 if flag(use-reflex-optimizer)
112 cpp-options: -DUSE_REFLEX_OPTIMIZER
113 build-depends: ghc
114 exposed-modules: Reflex.Optimizer
116 if flag(use-template-haskell)
117 cpp-options: -DUSE_TEMPLATE_HASKELL
118 build-depends:
119 dependent-sum >= 0.3 && < 0.5,
120 haskell-src-exts >= 1.16 && < 1.19,
121 haskell-src-meta >= 0.6 && < 0.8,
122 template-haskell >= 2.9 && < 2.12
123 exposed-modules:
124 Reflex.Dynamic.TH
125 other-extensions: TemplateHaskell
126 else
127 build-depends:
128 dependent-sum == 0.4.*
130 if flag(expose-all-unfoldings)
131 ghc-options: -fexpose-all-unfoldings
133 if flag(experimental-dependent-sum-instances)
134 ghc-options: -DEXPERIMENTAL_DEPENDENT_SUM_INSTANCES
136test-suite semantics
137 type: exitcode-stdio-1.0
138 main-is: semantics.hs
139 hs-source-dirs: test
140 ghc-options: -O2 -Wall -rtsopts
141 build-depends:
142 base,
143 bifunctors,
144 containers,
145 deepseq >= 1.3 && < 1.5,
146 dependent-map,
147 dependent-sum,
148 mtl,
149 ref-tf,
150 reflex,
151 split,
152 transformers >= 0.3
153 if flag(specialize-to-spidertimeline-global)
154 buildable: False
156test-suite hlint
157 type: exitcode-stdio-1.0
158 main-is: hlint.hs
159 hs-source-dirs: test
160 build-depends: base, hlint == 1.9.*
161 if impl(ghcjs)
162 buildable: False
164test-suite EventWriterT
165 type: exitcode-stdio-1.0
166 main-is: EventWriterT.hs
167 hs-source-dirs: test
168 build-depends: base
169 , dependent-sum
170 , transformers
171 , reflex
172 , ref-tf
174test-suite RequesterT
175 type: exitcode-stdio-1.0
176 main-is: RequesterT.hs
177 hs-source-dirs: test
178 build-depends: base
179 , dependent-sum
180 , dependent-map
181 , transformers
182 , reflex
183 , ref-tf
185test-suite GC-Semantics
186 type: exitcode-stdio-1.0
187 main-is: GC.hs
188 hs-source-dirs: test
189 if flag(specialize-to-spidertimeline-global)
190 buildable: False
191 build-depends: base
192 , dependent-sum
193 , dependent-map
194 , these
195 , transformers
196 , reflex
197 , ref-tf
199test-suite rootCleanup
200 type: exitcode-stdio-1.0
201 main-is: rootCleanup.hs
202 hs-source-dirs: test
203 build-depends: base
204 , reflex
206benchmark spider-bench
207 type: exitcode-stdio-1.0
208 hs-source-dirs: bench
209 main-is: Main.hs
210 ghc-options: -Wall -O2 -rtsopts
211 build-depends:
212 base,
213 criterion == 1.1.*,
214 deepseq >= 1.3 && < 1.5,
215 dependent-map,
216 dependent-sum,
217 mtl,
218 primitive,
219 reflex,
220 stm,
221 transformers >= 0.3
223benchmark saulzar-bench
224 type: exitcode-stdio-1.0
225 hs-source-dirs: bench test
226 c-sources: bench-cbits/checkCapability.c
227 main-is: RunAll.hs
228 ghc-options: -Wall -O2 -rtsopts -threaded
229 ghc-prof-options: -fprof-auto
230 build-depends:
231 base,
232 containers == 0.5.*,
233 criterion == 1.1.*,
234 deepseq >= 1.3 && < 1.5,
235 dependent-map,
236 dependent-sum,
237 loch-th,
238 mtl,
239 primitive,
240 process,
241 ref-tf,
242 reflex,
243 split,
244 stm,
245 time,
246 transformers >= 0.3
248source-repository head
249 type: git
250 location: https://github.com/reflex-frp/reflex