Make cabal files uploadable to Hackage

This commit is contained in:
Elliot Cameron 2020-05-13 15:14:18 -04:00
parent 873c833c3f
commit a5cab6a17d
No known key found for this signature in database
GPG Key ID: 6ABB57E3D52B0628
2 changed files with 12 additions and 3 deletions

View File

@ -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

View File

@ -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