Skip to content

Commit

Permalink
idris: patch 0.9.14 to workaround a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jwiegley committed Jul 24, 2014
1 parent 0852d9e commit 5c65124
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/development/compilers/idris/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
15 changes: 15 additions & 0 deletions pkgs/development/compilers/idris/trifecta-fix.patch
Original file line number Diff line number Diff line change
@@ -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)
{-!

0 comments on commit 5c65124

Please sign in to comment.