diagrams-lib: build on ghc-7.10

This commit is contained in:
Shea Levy 2015-04-11 18:22:50 -04:00
parent ed892e222b
commit 1cbf0b7d27
2 changed files with 17 additions and 0 deletions

View File

@ -292,4 +292,10 @@ self: super: {
diagrams-core = overrideCabal super.diagrams-core (drv: {
prePatch = "sed -i 's|4\.8|4.9|' diagrams-core.cabal";
});
# diagrams/diagrams-core#83
diagrams-lib = overrideCabal super.diagrams-lib (drv: {
prePatch = "sed -i 's|4\.8|4.9|' diagrams-lib.cabal";
patches = [ ./diagrams-lib-flexible-contexts.patch ];
});
}

View File

@ -0,0 +1,11 @@
diff -Naur diagrams-lib-1.2.0.9-orig/src/Diagrams/TwoD/Polygons.hs diagrams-lib-1.2.0.9/src/Diagrams/TwoD/Polygons.hs
--- diagrams-lib-1.2.0.9-orig/src/Diagrams/TwoD/Polygons.hs 2015-04-02 22:13:26.000000000 -0400
+++ diagrams-lib-1.2.0.9/src/Diagrams/TwoD/Polygons.hs 2015-04-11 18:17:28.095156620 -0400
@@ -4,6 +4,7 @@
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE ViewPatterns #-}
+{-# LANGUAGE FlexibleContexts #-}
-----------------------------------------------------------------------------
-- |