on 145b7d8 help sign in
patch/reflex.cabal
230 lines 5.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
41library
42 hs-source-dirs: src
43 build-depends:
44 MemoTrie == 0.6.*,
45 base >= 4.7 && < 4.11,
46 bifunctors >= 5.2 && < 5.5,
47 containers == 0.5.*,
48 data-default >= 0.5 && < 0.8,
49 dependent-map >= 0.2.4 && < 0.3,
50 exception-transformers == 0.4.*,
51 lens >= 4.7 && < 5,
52 monad-control >= 1.0.1 && < 1.1,
53 mtl >= 2.1 && < 2.3,
54 prim-uniq >= 0.1.0.1 && < 0.2,
55 primitive >= 0.5 && < 0.7,
56 ref-tf == 0.4.*,
57 reflection == 2.1.*,
58 semigroupoids >= 4.0 && < 6,
59 semigroups >= 0.16 && < 0.19,
60 stm == 2.4.*,
61 syb >= 0.5 && < 0.7,
62 these >= 0.4 && < 0.8,
63 transformers >= 0.2,
64 transformers-compat >= 0.3
66 exposed-modules:
67 Data.Functor.Misc,
68 Data.WeakBag,
69 Reflex,
70 Reflex.Class,
71 Reflex.EventWriter,
72 Reflex.Dynamic,
73 Reflex.Dynamic.Uniq,
74 Reflex.DynamicWriter,
75 Reflex.FunctorMaybe,
76 Reflex.Host.Class,
77 Reflex.Patch,
78 Reflex.TriggerEvent.Base,
79 Reflex.TriggerEvent.Class,
80 Reflex.PerformEvent.Base,
81 Reflex.PerformEvent.Class,
82 Reflex.PostBuild.Base,
83 Reflex.PostBuild.Class,
84 Reflex.Requester.Base,
85 Reflex.Requester.Class,
86 Reflex.Spider,
87 Reflex.Spider.Internal
89 ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2
90 ghc-prof-options: -fprof-auto
92 if flag(specialize-to-spidertimeline-global)
93 cpp-options: -DSPECIALIZE_TO_SPIDERTIMELINE_GLOBAL
94 else
95 exposed-modules: Reflex.Pure
97 if flag(debug-trace-events)
98 cpp-options: -DDEBUG_TRACE_EVENTS
99 build-depends: bytestring
101 if flag(use-reflex-optimizer)
102 cpp-options: -DUSE_REFLEX_OPTIMIZER
103 build-depends: ghc
104 exposed-modules: Reflex.Optimizer
106 if flag(use-template-haskell)
107 cpp-options: -DUSE_TEMPLATE_HASKELL
108 build-depends:
109 dependent-sum >= 0.3 && < 0.5,
110 haskell-src-exts >= 1.16 && < 1.18,
111 haskell-src-meta == 0.6.*,
112 template-haskell >= 2.9 && < 2.12
113 exposed-modules:
114 Reflex.Dynamic.TH
115 other-extensions: TemplateHaskell
116 else
117 build-depends:
118 dependent-sum == 0.4.*
120 if flag(expose-all-unfoldings)
121 ghc-options: -fexpose-all-unfoldings
123test-suite semantics
124 type: exitcode-stdio-1.0
125 main-is: semantics.hs
126 hs-source-dirs: test
127 ghc-options: -O2 -Wall -rtsopts
128 build-depends:
129 base,
130 bifunctors,
131 containers,
132 deepseq >= 1.3 && < 1.5,
133 dependent-map,
134 dependent-sum,
135 mtl,
136 ref-tf,
137 reflex,
138 split,
139 transformers >= 0.3
140 if flag(specialize-to-spidertimeline-global)
141 buildable: False
143test-suite hlint
144 type: exitcode-stdio-1.0
145 main-is: hlint.hs
146 hs-source-dirs: test
147 build-depends: base, hlint == 1.9.*
148 if impl(ghcjs)
149 buildable: False
151test-suite EventWriterT
152 type: exitcode-stdio-1.0
153 main-is: EventWriterT.hs
154 hs-source-dirs: test
155 build-depends: base
156 , dependent-sum
157 , transformers
158 , reflex
159 , ref-tf
161test-suite RequesterT
162 type: exitcode-stdio-1.0
163 main-is: RequesterT.hs
164 hs-source-dirs: test
165 build-depends: base
166 , dependent-sum
167 , dependent-map
168 , transformers
169 , reflex
170 , ref-tf
172test-suite GC-Semantics
173 type: exitcode-stdio-1.0
174 main-is: GC.hs
175 hs-source-dirs: test
176 if flag(specialize-to-spidertimeline-global)
177 buildable: False
178 build-depends: base
179 , dependent-sum
180 , dependent-map
181 , these
182 , transformers
183 , reflex
184 , ref-tf
186benchmark spider-bench
187 type: exitcode-stdio-1.0
188 hs-source-dirs: bench
189 main-is: Main.hs
190 ghc-options: -Wall -O2 -rtsopts
191 build-depends:
192 base,
193 criterion == 1.1.*,
194 deepseq >= 1.3 && < 1.5,
195 dependent-map,
196 dependent-sum,
197 mtl,
198 primitive,
199 reflex,
200 stm,
201 transformers >= 0.3
203benchmark saulzar-bench
204 type: exitcode-stdio-1.0
205 hs-source-dirs: bench test
206 c-sources: bench-cbits/checkCapability.c
207 main-is: RunAll.hs
208 ghc-options: -Wall -O2 -rtsopts -threaded
209 ghc-prof-options: -fprof-auto
210 build-depends:
211 base,
212 containers == 0.5.*,
213 criterion == 1.1.*,
214 deepseq >= 1.3 && < 1.5,
215 dependent-map,
216 dependent-sum,
217 loch-th,
218 mtl,
219 primitive,
220 process,
221 ref-tf,
222 reflex,
223 split,
224 stm,
225 time,
226 transformers >= 0.3
228source-repository head
229 type: git
230 location: https://github.com/reflex-frp/reflex