on master help sign in
Merge pull request #225 from composewell/ghcjs-build

Do not compile examples depending on network in ghcjs build.

commit15e28aab45ffb6eb56fb1b3638fe5c43e906a9c0 authorHarendra Kumar <harendra.kumar@gmail.com> dateTue 30 Jul 2019, 16:55 (7 years ago) parent7f50289ede4e3f
1 file changed+3−3
streamly.cabal+3−3
streamly.cabal+3−3
@@ -1053,7 +1053,7 @@ executable EchoServer
10531053 main-is: EchoServer.hs
10541054 hs-source-dirs: examples
10551055 ghc-options: -Wall
1056− if flag(examples) || flag(examples-sdl)
1056+ if (flag(examples) || flag(examples-sdl)) && !impl(ghcjs)
10571057 buildable: True
10581058 build-Depends:
10591059 streamly
@@ -1066,7 +1066,7 @@ executable FileSinkServer
10661066 main-is: FileSinkServer.hs
10671067 hs-source-dirs: examples
10681068 ghc-options: -Wall
1069− if flag(examples) || flag(examples-sdl)
1069+ if (flag(examples) || flag(examples-sdl)) && !impl(ghcjs)
10701070 buildable: True
10711071 build-Depends:
10721072 streamly
@@ -1079,7 +1079,7 @@ executable FromFileClient
10791079 main-is: FromFileClient.hs
10801080 hs-source-dirs: examples
10811081 ghc-options: -Wall
1082− if flag(examples) || flag(examples-sdl)
1082+ if (flag(examples) || flag(examples-sdl)) && !impl(ghcjs)
10831083 buildable: True
10841084 build-Depends:
10851085 streamly