on develop help sign in
Merge pull request #382 from reflex-frp/eac@fix-cabal-files

Make cabal files uploadable to Hackage

commit9c696a0f382321c72237c206699efda2e30faef4 authorElliot Cameron <3noch@users.noreply.github.com> dateWed 13 May 2020, 15:48 (6 years ago) parent873c833a5cab6a
2 files changed+12−3
reflex-dom-core/reflex-dom-core.cabal+5−1 reflex-dom/reflex-dom.cabal+7−2
reflex-dom-core/reflex-dom-core.cabal+5−1
@@ -1,3 +1,4 @@
1+cabal-version: 1.24
12Name: reflex-dom-core
23Version: 0.6.0.0
34Synopsis: Functional Reactive Web Apps with Reflex
@@ -15,7 +16,6 @@ Maintainer: ryan.trinkle@gmail.com
1516Stability: Experimental
1617Category: FRP, Web, GUI, HTML, Javascript, Reactive, Reactivity, User Interfaces, User-interface
1718Build-type: Simple
18−Cabal-version: >=1.9.2
1919-- Deal with https://github.com/haskell/cabal/issues/2544 / https://github.com/haskell/cabal/issues/367
2020extra-source-files: src-ghc/Foreign/JavaScript/Internal/Utils.hs
2121 src-ghcjs/Foreign/JavaScript/Internal/Utils.hs
@@ -139,6 +139,7 @@ library
139139 Reflex.Dom.Xhr.ResponseType
140140 Reflex.Dom.Xhr.Exception
141141
142+ default-language: Haskell98
142143 ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2 -ferror-spans -fspecialise-aggressively
143144 ghc-prof-options: -fprof-auto
144145
@@ -165,6 +166,7 @@ test-suite hlint
165166 hs-source-dirs: test
166167 main-is: hlint.hs
167168 type: exitcode-stdio-1.0
169+ default-language: Haskell98
168170
169171test-suite hydration
170172 build-depends: base
@@ -211,6 +213,7 @@ test-suite hydration
211213 ghc-prof-options: -fprof-auto -optP-DPROFILING
212214 main-is: hydration.hs
213215 type: exitcode-stdio-1.0
216+ default-language: Haskell98
214217 if !os(linux) || !arch(x86_64) || flag(profile-reflex)
215218 buildable: False
216219
@@ -230,6 +233,7 @@ test-suite gc
230233 ghc-prof-options: -fprof-auto -optP-DPROFILING
231234 main-is: gc.hs
232235 type: exitcode-stdio-1.0
236+ default-language: Haskell98
233237 if !os(linux) || !arch(x86_64)
234238 buildable: False
235239
reflex-dom/reflex-dom.cabal+7−2
@@ -1,3 +1,4 @@
1+cabal-version: 1.24
12Name: reflex-dom
23Version: 0.6.0.0
34Synopsis: Functional Reactive Web Apps with Reflex
@@ -17,7 +18,6 @@ Maintainer: ryan.trinkle@gmail.com
1718Stability: Experimental
1819Category: FRP, Web, GUI, HTML, Javascript, Reactive, Reactivity, User Interfaces, User-interface
1920Build-type: Simple
20−cabal-version: >=1.24
2121extra-source-files:
2222 java/org/reflexfrp/reflexdom/MainWidget.java
2323 ChangeLog.md
@@ -46,6 +46,11 @@ flag build-examples
4646 default: False
4747 manual: True
4848
49+flag wasm32
50+ description: Build for wasm32 architecture
51+ default: False
52+ manual: True
53+
4954library
5055 hs-source-dirs: src
5156 if os(android)
@@ -79,7 +84,7 @@ library
7984 jsaddle >= 0.9.6 && < 0.10,
8085 jsaddle-wkwebview >= 0.9.6 && < 0.10
8186 else
82− if arch(wasm32)
87+ if flag(wasm32)
8388 build-depends:
8489 jsaddle >= 0.9.6 && < 0.10,
8590 jsaddle-wasm >= 0.1 && < 0.2