idris: patch 0.9.14 to workaround a bug
This commit is contained in:
parent
0852d9e364
commit
5c6512434a
@ -26,6 +26,7 @@ cabal.mkDerivation (self: {
|
|||||||
buildTools = [ happy ];
|
buildTools = [ happy ];
|
||||||
extraLibraries = [ boehmgc gmp ];
|
extraLibraries = [ boehmgc gmp ];
|
||||||
configureFlags = "-fllvm -fgmp -fffi";
|
configureFlags = "-fllvm -fgmp -fffi";
|
||||||
|
patches = [ ./trifecta-fix.patch ];
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "http://www.idris-lang.org/";
|
homepage = "http://www.idris-lang.org/";
|
||||||
description = "Functional Programming Language with Dependent Types";
|
description = "Functional Programming Language with Dependent Types";
|
||||||
|
15
pkgs/development/compilers/idris/trifecta-fix.patch
Normal file
15
pkgs/development/compilers/idris/trifecta-fix.patch
Normal file
@ -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)
|
||||||
|
{-!
|
Loading…
x
Reference in New Issue
Block a user