diff options
Diffstat (limited to 'pkgs/development/compilers/idris')
-rw-r--r-- | pkgs/development/compilers/idris/default.nix | 1 | ||||
-rw-r--r-- | pkgs/development/compilers/idris/trifecta-fix.patch | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/pkgs/development/compilers/idris/default.nix b/pkgs/development/compilers/idris/default.nix index c2b6b0ac5acc..df57364fa085 100644 --- a/pkgs/development/compilers/idris/default.nix +++ b/pkgs/development/compilers/idris/default.nix @@ -26,6 +26,7 @@ cabal.mkDerivation (self: { buildTools = [ happy ]; extraLibraries = [ boehmgc gmp ]; configureFlags = "-fllvm -fgmp -fffi"; + patches = [ ./trifecta-fix.patch ]; meta = { homepage = "http://www.idris-lang.org/"; description = "Functional Programming Language with Dependent Types"; diff --git a/pkgs/development/compilers/idris/trifecta-fix.patch b/pkgs/development/compilers/idris/trifecta-fix.patch new file mode 100644 index 000000000000..a20e482d2c41 --- /dev/null +++ b/pkgs/development/compilers/idris/trifecta-fix.patch @@ -0,0 +1,15 @@ +diff --git a/src/Idris/AbsSyntaxTree.hs b/src/Idris/AbsSyntaxTree.hs +index 76df969..076f1ff 100644 +--- a/src/Idris/AbsSyntaxTree.hs ++++ b/src/Idris/AbsSyntaxTree.hs +@@ -194,6 +194,10 @@ data IState = IState { + idris_callswho :: Maybe (M.Map Name [Name]) + } + ++-- Required for parsers library, and therefore trifecta ++instance Show IState where ++ show = const "{internal state}" ++ + data SizeChange = Smaller | Same | Bigger | Unknown + deriving (Show, Eq) + {-! |