From d169b3600f75da58bbc8748ab4e19b2d1c425010 Mon Sep 17 00:00:00 2001 From: Gergely Risko Date: Fri, 16 Aug 2013 18:18:19 +0200 Subject: [PATCH] Fix HFuse compilation with GHC 7.6.3 --- pkgs/development/libraries/haskell/HFuse/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/libraries/haskell/HFuse/default.nix b/pkgs/development/libraries/haskell/HFuse/default.nix index 64943d5e1c1..67e3a4157b7 100644 --- a/pkgs/development/libraries/haskell/HFuse/default.nix +++ b/pkgs/development/libraries/haskell/HFuse/default.nix @@ -8,6 +8,11 @@ cabal.mkDerivation (self: { preConfigure = '' sed -i -e "s@ Extra-Lib-Dirs: /usr/local/lib@ Extra-Lib-Dirs: ${fuse}/lib@" HFuse.cabal + sed -i -e "s/LANGUAGE FlexibleContexts/LANGUAGE FlexibleContexts, RankNTypes/" System/Fuse.hsc + sed -i -e "s/E(Exception/E(catch, Exception, IOException/" System/Fuse.hsc + sed -i -e "s/IO(catch,/IO(/" System/Fuse.hsc + sed -i -e "s/IO.catch/ E.catch/" System/Fuse.hsc + sed -i -e "s/const exitFailure/\\\\(_ :: IOException) -> exitFailure/" System/Fuse.hsc ''; meta = {