happy-1.19.3: patch code to build with ghc-head

https://github.com/simonmar/happy/issues/20
This commit is contained in:
Peter Simons 2014-05-03 20:22:12 +02:00
parent 1bfeca7a90
commit 208e7cae1a

View file

@ -8,6 +8,10 @@ cabal.mkDerivation (self: {
isExecutable = true;
buildDepends = [ mtl ];
buildTools = [ perl ];
preConfigure = self.stdenv.lib.optional (self.stdenv.lib.versionOlder "7.9" self.ghc.version) ''
sed -i -e 's|extensions: |extensions: FlexibleContexts, |' happy.cabal
sed -i -e 's|> import System.Exit|> import System.Exit ( exitWith, ExitCode(..) )|' src/Main.lhs
'';
meta = {
homepage = "http://www.haskell.org/happy/";
description = "Happy is a parser generator for Haskell";