Merge pull request #225 from composewell/ghcjs-build

Do not compile examples depending on network in ghcjs build.
This commit is contained in:
Harendra Kumar 2019-07-30 16:55:54 +05:30 committed by GitHub
commit 15e28aab45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1053,7 +1053,7 @@ executable EchoServer
main-is: EchoServer.hs
hs-source-dirs: examples
ghc-options: -Wall
if flag(examples) || flag(examples-sdl)
if (flag(examples) || flag(examples-sdl)) && !impl(ghcjs)
buildable: True
build-Depends:
streamly
@ -1066,7 +1066,7 @@ executable FileSinkServer
main-is: FileSinkServer.hs
hs-source-dirs: examples
ghc-options: -Wall
if flag(examples) || flag(examples-sdl)
if (flag(examples) || flag(examples-sdl)) && !impl(ghcjs)
buildable: True
build-Depends:
streamly
@ -1079,7 +1079,7 @@ executable FromFileClient
main-is: FromFileClient.hs
hs-source-dirs: examples
ghc-options: -Wall
if flag(examples) || flag(examples-sdl)
if (flag(examples) || flag(examples-sdl)) && !impl(ghcjs)
buildable: True
build-Depends:
streamly