on develop help sign in
Make cabal files uploadable to Hackage
a5cab6aElliot Cameron
reflex-dom-core/reflex-dom-core.cabal+5−1
@@ -1,3 +1,4 @@
1+cabal-version: 1.24
1Name: reflex-dom-core
2Name: reflex-dom-core
2Version: 0.6.0.0
3Version: 0.6.0.0
3Synopsis: Functional Reactive Web Apps with Reflex
4Synopsis: Functional Reactive Web Apps with Reflex
@@ -15,7 +16,6 @@ Maintainer: ryan.trinkle@gmail.com
15Stability: Experimental
16Stability: Experimental
16Category: FRP, Web, GUI, HTML, Javascript, Reactive, Reactivity, User Interfaces, User-interface
17Category: FRP, Web, GUI, HTML, Javascript, Reactive, Reactivity, User Interfaces, User-interface
17Build-type: Simple
18Build-type: Simple
18−Cabal-version: >=1.9.2
19-- Deal with https://github.com/haskell/cabal/issues/2544 / https://github.com/haskell/cabal/issues/367
19-- Deal with https://github.com/haskell/cabal/issues/2544 / https://github.com/haskell/cabal/issues/367
20extra-source-files: src-ghc/Foreign/JavaScript/Internal/Utils.hs
20extra-source-files: src-ghc/Foreign/JavaScript/Internal/Utils.hs
21 src-ghcjs/Foreign/JavaScript/Internal/Utils.hs
21 src-ghcjs/Foreign/JavaScript/Internal/Utils.hs
@@ -139,6 +139,7 @@ library
139 Reflex.Dom.Xhr.ResponseType
139 Reflex.Dom.Xhr.ResponseType
140 Reflex.Dom.Xhr.Exception
140 Reflex.Dom.Xhr.Exception
141
141
142+ default-language: Haskell98
142 ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2 -ferror-spans -fspecialise-aggressively
143 ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2 -ferror-spans -fspecialise-aggressively
143 ghc-prof-options: -fprof-auto
144 ghc-prof-options: -fprof-auto
144
145
@@ -165,6 +166,7 @@ test-suite hlint
165 hs-source-dirs: test
166 hs-source-dirs: test
166 main-is: hlint.hs
167 main-is: hlint.hs
167 type: exitcode-stdio-1.0
168 type: exitcode-stdio-1.0
169+ default-language: Haskell98
168
170
169test-suite hydration
171test-suite hydration
170 build-depends: base
172 build-depends: base
@@ -211,6 +213,7 @@ test-suite hydration
211 ghc-prof-options: -fprof-auto -optP-DPROFILING
213 ghc-prof-options: -fprof-auto -optP-DPROFILING
212 main-is: hydration.hs
214 main-is: hydration.hs
213 type: exitcode-stdio-1.0
215 type: exitcode-stdio-1.0
216+ default-language: Haskell98
214 if !os(linux) || !arch(x86_64) || flag(profile-reflex)
217 if !os(linux) || !arch(x86_64) || flag(profile-reflex)
215 buildable: False
218 buildable: False
216
219
@@ -230,6 +233,7 @@ test-suite gc
230 ghc-prof-options: -fprof-auto -optP-DPROFILING
233 ghc-prof-options: -fprof-auto -optP-DPROFILING
231 main-is: gc.hs
234 main-is: gc.hs
232 type: exitcode-stdio-1.0
235 type: exitcode-stdio-1.0
236+ default-language: Haskell98
233 if !os(linux) || !arch(x86_64)
237 if !os(linux) || !arch(x86_64)
234 buildable: False
238 buildable: False
235
239
reflex-dom/reflex-dom.cabal+7−2
@@ -1,3 +1,4 @@
1+cabal-version: 1.24
1Name: reflex-dom
2Name: reflex-dom
2Version: 0.6.0.0
3Version: 0.6.0.0
3Synopsis: Functional Reactive Web Apps with Reflex
4Synopsis: Functional Reactive Web Apps with Reflex
@@ -17,7 +18,6 @@ Maintainer: ryan.trinkle@gmail.com
17Stability: Experimental
18Stability: Experimental
18Category: FRP, Web, GUI, HTML, Javascript, Reactive, Reactivity, User Interfaces, User-interface
19Category: FRP, Web, GUI, HTML, Javascript, Reactive, Reactivity, User Interfaces, User-interface
19Build-type: Simple
20Build-type: Simple
20−cabal-version: >=1.24
21extra-source-files:
21extra-source-files:
22 java/org/reflexfrp/reflexdom/MainWidget.java
22 java/org/reflexfrp/reflexdom/MainWidget.java
23 ChangeLog.md
23 ChangeLog.md
@@ -46,6 +46,11 @@ flag build-examples
46 default: False
46 default: False
47 manual: True
47 manual: True
48
48
49+flag wasm32
50+ description: Build for wasm32 architecture
51+ default: False
52+ manual: True
53+
49library
54library
50 hs-source-dirs: src
55 hs-source-dirs: src
51 if os(android)
56 if os(android)
@@ -79,7 +84,7 @@ library
79 jsaddle >= 0.9.6 && < 0.10,
84 jsaddle >= 0.9.6 && < 0.10,
80 jsaddle-wkwebview >= 0.9.6 && < 0.10
85 jsaddle-wkwebview >= 0.9.6 && < 0.10
81 else
86 else
82− if arch(wasm32)
87+ if flag(wasm32)
83 build-depends:
88 build-depends:
84 jsaddle >= 0.9.6 && < 0.10,
89 jsaddle >= 0.9.6 && < 0.10,
85 jsaddle-wasm >= 0.1 && < 0.2
90 jsaddle-wasm >= 0.1 && < 0.2