-
Notifications
You must be signed in to change notification settings - Fork 147
Expand file tree
/
Copy pathreflex-dom-core.cabal
More file actions
261 lines (241 loc) · 7.73 KB
/
Copy pathreflex-dom-core.cabal
File metadata and controls
261 lines (241 loc) · 7.73 KB
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
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
cabal-version: 1.24
Name: reflex-dom-core
Version: 0.8.0.0
Synopsis: Functional Reactive Web Apps with Reflex
Description:
Web applications without callbacks or side-effects.
Reflex-DOM brings the power of functional reactive programming (FRP) to the web.
Build HTML and other Document Object Model (DOM) data with a pure functional interface.
.
Reflex-DOM is a Functional Reactive web framework based on the Reflex FRP engine: <https://reflex-frp.org/>.
.
The @reflex-dom@ package is a small wrapper around the @reflex-dom-core@ package. It pulls in the
correct set of dependencies for each target platform (GHCJS, WebKitGTK, WASM, mobile, etc.).
Libraries should depend on @reflex-dom-core@ and executables will usually depend on @reflex-dom@.
All of @reflex-dom-core@'s modules are re-exported by @reflex-dom@.
License: BSD3
License-file: LICENSE
Author: Ryan Trinkle
Maintainer: ryan.trinkle@gmail.com
Stability: Experimental
Category: FRP, Web, GUI, HTML, Javascript, Reactive, Reactivity, User Interfaces, User-interface
Build-type: Simple
-- Deal with https://github.com/haskell/cabal/issues/2544 / https://github.com/haskell/cabal/issues/367
extra-source-files: src-ghc/Foreign/JavaScript/Internal/Utils.hs
src-ghcjs/Foreign/JavaScript/Internal/Utils.hs
src/Reflex/Dom/Xhr/Foreign.hs
src/Reflex/Dom/WebSocket/Foreign.hs
src/Reflex/Dom/Xhr/ResponseType.hs
src/Reflex/Dom/Xhr/Exception.hs
ChangeLog.md
flag use-template-haskell
description: Use template haskell to generate lenses
default: True
manual: True
flag use-reflex-optimizer
description: Use the GHC plugin Reflex.Optimizer on some of the modules in the package. This is still experimental.
default: False
manual: True
flag expose-all-unfoldings
description: Build the library with -fexpose-all-unfoldings which can help client code specialize better
default: False
manual: True
flag profile-reflex
description: Add a layer of profiling to all Reflex events in the system
default: False
manual: True
flag split-these
description: Use split these/semialign packages
manual: False
default: True
flag hydration-tests
description: Whether to run the hydration tests (currently only available on linux)
default: True
manual: True
flag gc-tests
description: Whether to run the gc tests (currently only available on linux)
default: True
manual: True
library
hs-source-dirs: src
build-depends:
aeson >= 0.8 && < 2.2,
base >= 4.7 && < 4.15,
bifunctors >= 4.2 && < 6,
bimap >= 0.3 && < 0.5,
blaze-builder >= 0.4.1 && < 0.5,
bytestring == 0.10.*,
case-insensitive < 1.3,
commutative-semigroups >=0.1 && <0.2,
containers >= 0.6 && < 0.7,
constraints >= 0.9 && < 0.14,
contravariant >= 1.4 && < 1.6,
data-default >= 0.5 && < 0.8,
dependent-map >= 0.3 && < 0.5,
dependent-sum >= 0.6 && < 0.8,
dependent-sum-template >= 0.1 && < 0.2,
directory >= 1.2 && < 1.4,
exception-transformers == 0.4.*,
ghcjs-dom >= 0.9.1.0 && < 0.10,
jsaddle >= 0.9.0.0 && < 0.10,
-- keycode-0.2 has a bug on firefox
keycode >= 0.2.1 && < 0.3,
lens >= 4.7 && < 5.3,
monad-control >= 1.0.1 && < 1.1,
mtl >= 2.1 && < 2.3,
primitive >= 0.5 && < 0.8,
random >= 1.1 && < 1.3,
ref-tf >= 0.4 && < 0.6,
reflex >= 0.8.2.1 && < 1,
semigroups >= 0.16 && < 0.20,
stm >= 2.4 && < 2.6,
text == 1.2.*,
transformers >= 0.3 && < 0.6,
network-uri >= 2.6.1 && < 2.7,
zenc == 0.1.*
if impl(ghcjs)
hs-source-dirs: src-ghcjs
build-depends:
ghcjs-base,
hashable >= 1.2 && < 1.4
else
hs-source-dirs: src-ghc
if !os(windows)
build-depends: unix == 2.7.*
if flag(split-these)
build-depends:
semialign >= 1 && < 1.3,
these >= 1 && < 1.3
else
build-depends:
these >= 0.4 && < 0.9
exposed-modules:
Foreign.JavaScript.TH
Foreign.JavaScript.Orphans
Foreign.JavaScript.Utils
Reflex.Dom.Builder.Class
Reflex.Dom.Builder.Class.Events
Reflex.Dom.Builder.Immediate
Reflex.Dom.Builder.InputDisabled
Reflex.Dom.Builder.Hydratable
Reflex.Dom.Builder.Static
Reflex.Dom.Class
Reflex.Dom.Core
Reflex.Dom.Location
Reflex.Dom.Main
Reflex.Dom.Modals.Class
Reflex.Dom.Old
Reflex.Dom.Prerender
Reflex.Dom.Time
Reflex.Dom.Tutorial
Reflex.Dom.WebSocket
Reflex.Dom.WebSocket.Query
Reflex.Dom.Widget
Reflex.Dom.Widget.Basic
Reflex.Dom.Widget.Input
Reflex.Dom.Widget.Lazy
Reflex.Dom.Widget.Resize
Reflex.Dom.Xhr
Reflex.Dom.Xhr.FormData
other-modules:
Foreign.JavaScript.Internal.Utils
Reflex.Dom.WebSocket.Foreign
Reflex.Dom.Xhr.Foreign
Reflex.Dom.Xhr.ResponseType
Reflex.Dom.Xhr.Exception
default-language: Haskell98
ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2 -ferror-spans -fspecialise-aggressively
ghc-prof-options: -fprof-auto
if flag(expose-all-unfoldings)
ghc-options: -fexpose-all-unfoldings
if flag(use-reflex-optimizer)
ghc-options: -fplugin=Reflex.Optimizer
if flag(profile-reflex)
cpp-options: -DPROFILE_REFLEX
if flag(use-template-haskell)
build-depends:
dependent-sum-template >= 0.1 && < 0.2,
template-haskell >= 2.12.0 && < 2.17
other-extensions: TemplateHaskell
cpp-options: -DUSE_TEMPLATE_HASKELL
other-modules:
Reflex.Dom.Builder.Class.TH
test-suite hlint
build-depends:
base,
hlint >= 2.0 && < 4.0
hs-source-dirs: test
main-is: hlint.hs
type: exitcode-stdio-1.0
default-language: Haskell98
test-suite hydration
build-depends: base
, aeson
, async
, bytestring
, chrome-test-utils
, constraints
, constraints-extras
, containers
, dependent-map
, dependent-sum
, dependent-sum-template
, directory
, exceptions
, filepath
, ghcjs-dom
, hspec
, hspec-core
, hspec-webdriver
, http-types
, HUnit
, jsaddle
, jsaddle-warp
, lens
, lifted-base
, network
, random
, ref-tf
, reflex
, reflex-dom-core
, process
, silently
, temporary
, text
, wai
, wai-websockets
, warp
, webdriver
, websockets
, which
hs-source-dirs: test
ghc-options: -rtsopts -with-rtsopts=-T -Wall -fwarn-tabs -funbox-strict-fields -O2 -ferror-spans
ghc-prof-options: -fprof-auto -optP-DPROFILING
main-is: hydration.hs
type: exitcode-stdio-1.0
default-language: Haskell98
if !os(linux) || !arch(x86_64) || flag(profile-reflex) || !flag(hydration-tests)
buildable: False
-- broken test on base 4.11 & ghc 8.4.3
-- needs to be updated for changes in GHC.Stats
test-suite gc
build-depends: base
, chrome-test-utils
, jsaddle
, jsaddle-warp
, process
, reflex
, reflex-dom-core
, text
hs-source-dirs: test
ghc-options: -rtsopts -with-rtsopts=-T -Wall -fwarn-tabs -funbox-strict-fields -O2 -ferror-spans
ghc-prof-options: -fprof-auto -optP-DPROFILING
main-is: gc.hs
type: exitcode-stdio-1.0
default-language: Haskell98
if !os(linux) || !arch(x86_64) || !flag(gc-tests)
buildable: False
source-repository head
type: git
location: https://github.com/reflex-frp/reflex-dom
subdir: reflex-dom-core