From 2561c83ad1f5b0ced8a233edaae2731c3fb1fd4e Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Fri, 15 Jun 2018 11:20:18 -0400 Subject: [PATCH] Add temporary fix for Haskell free + iOS issue Discussion here: https://github.com/ekmett/free/issues/176 We need to disable optimizations for things to build. --- haskell-overlays/ios.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/haskell-overlays/ios.nix b/haskell-overlays/ios.nix index 8ee49d678..bf6a3729c 100644 --- a/haskell-overlays/ios.nix +++ b/haskell-overlays/ios.nix @@ -13,6 +13,12 @@ self: super: { cabal-doctest = null; syb = haskellLib.overrideCabal super.syb (drv: { jailbreak = true; }); + # HACK(matthewbauer): + # Temporary fix for https://github.com/ekmett/free/issues/176 + # Optimizations are broken on iOS for some modules. + free = haskellLib.appendConfigureFlag super.free "--enable-optimization=0"; + jsaddle = haskellLib.appendConfigureFlag super.jsaddle "--enable-optimization=0"; + reflex-todomvc = haskellLib.overrideCabal super.reflex-todomvc (drv: { postFixup = '' mkdir $out/reflex-todomvc.app