Skip to content

Commit 222fa0d

Browse files
committed
Allow to compile with new javascript backend
1 parent 78072d7 commit 222fa0d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

servant-jsaddle.cabal

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ library
5353
, text >=1.2.3.0
5454
, transformers >=0.5.2.0
5555

56-
if impl(ghcjs -any)
56+
if impl(ghcjs -any) || arch(javascript)
5757
build-depends: ghcjs-base
5858

5959
-- Servant dependencies.
@@ -72,7 +72,7 @@ library
7272
, string-conversions >=0.3 && <0.5
7373
, transformers-base >=0.4.4 && <0.5
7474

75-
if impl(ghc >=8.0)
75+
if impl(ghc >=8.0) || arch(javascript)
7676
ghc-options: -Wno-redundant-constraints
7777

7878
test-suite spec
@@ -82,7 +82,7 @@ test-suite spec
8282
hs-source-dirs: test
8383
main-is: Spec.hs
8484

85-
if impl(ghcjs -any)
85+
if impl(ghcjs -any) || arch(javascript)
8686
build-depends:
8787
base
8888
, servant-jsaddle

0 commit comments

Comments
 (0)