happy-1.19.3: patch code to build with ghc-head
https://github.com/simonmar/happy/issues/20
This commit is contained in:
parent
1bfeca7a90
commit
208e7cae1a
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user