diff --git a/reflex-dom-core/reflex-dom-core.cabal b/reflex-dom-core/reflex-dom-core.cabal index 75b082c..c62eba9 100644 --- a/reflex-dom-core/reflex-dom-core.cabal +++ b/reflex-dom-core/reflex-dom-core.cabal @@ -1,3 +1,4 @@ +cabal-version: 1.24 Name: reflex-dom-core Version: 0.6.0.0 Synopsis: Functional Reactive Web Apps with Reflex @@ -15,7 +16,6 @@ Maintainer: ryan.trinkle@gmail.com Stability: Experimental Category: FRP, Web, GUI, HTML, Javascript, Reactive, Reactivity, User Interfaces, User-interface Build-type: Simple -Cabal-version: >=1.9.2 -- 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 @@ -139,6 +139,7 @@ library 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 @@ -165,6 +166,7 @@ test-suite hlint hs-source-dirs: test main-is: hlint.hs type: exitcode-stdio-1.0 + default-language: Haskell98 test-suite hydration build-depends: base @@ -211,6 +213,7 @@ test-suite hydration 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) buildable: False @@ -230,6 +233,7 @@ test-suite gc 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) buildable: False diff --git a/reflex-dom/reflex-dom.cabal b/reflex-dom/reflex-dom.cabal index b741502..a2fe668 100644 --- a/reflex-dom/reflex-dom.cabal +++ b/reflex-dom/reflex-dom.cabal @@ -1,3 +1,4 @@ +cabal-version: 1.24 Name: reflex-dom Version: 0.6.0.0 Synopsis: Functional Reactive Web Apps with Reflex @@ -17,7 +18,6 @@ Maintainer: ryan.trinkle@gmail.com Stability: Experimental Category: FRP, Web, GUI, HTML, Javascript, Reactive, Reactivity, User Interfaces, User-interface Build-type: Simple -cabal-version: >=1.24 extra-source-files: java/org/reflexfrp/reflexdom/MainWidget.java ChangeLog.md @@ -46,6 +46,11 @@ flag build-examples default: False manual: True +flag wasm32 + description: Build for wasm32 architecture + default: False + manual: True + library hs-source-dirs: src if os(android) @@ -79,7 +84,7 @@ library jsaddle >= 0.9.6 && < 0.10, jsaddle-wkwebview >= 0.9.6 && < 0.10 else - if arch(wasm32) + if flag(wasm32) build-depends: jsaddle >= 0.9.6 && < 0.10, jsaddle-wasm >= 0.1 && < 0.2