on develop help sign in
Don't use Warp on iOS

These change otherwise strictly keeps backwards compatability. But there might be further simplifications to be had.

commite28f91b9d9f3ab3c67323d6d20ebdfc21159f552 authorJohn Ericson <John.Ericson@Obsidian.Systems> dateFri 14 Sep 2018, 17:26 (8 years ago) parent56aa06e
1 file changed+5−3
reflex-dom/default.nix+5−3
reflex-dom/default.nix+5−3
@@ -1,6 +1,6 @@
11{ mkDerivation, base, bytestring, jsaddle-webkit2gtk, jsaddle-wkwebview, jsaddle-warp, reflex
22, reflex-dom-core, stdenv, text, ghc, hostPlatform, jsaddle-clib, android-activity ? null
3−, ghcBackend ? "webkit2gtk"
3+, ghcBackend ? if hostPlatform.isDarwin then "warp" else "webkit2gtk"
44}:
55assert (builtins.elem ghcBackend [ "warp" "webkit2gtk" ]);
66let isAndroid = hostPlatform.libc == "bionic";
@@ -15,12 +15,14 @@ in mkDerivation {
1515 libraryHaskellDepends = [
1616 base bytestring reflex reflex-dom-core text
1717 ] ++ (if ghc.isGhcjs or false then [
18− ] else if hostPlatform.isDarwin then [
18+ ] else if hostPlatform.isiOS then [
1919 jsaddle-wkwebview
20− jsaddle-warp
2120 ] else if isAndroid then [
2221 jsaddle-clib
2322 android-activity
23+ ] else if hostPlatform.isMacOS then [
24+ jsaddle-wkwebview
25+ ghcBackendPackage
2426 ] else [
2527 ghcBackendPackage
2628 ]);