Skip to content

Instantly share code, notes, and snippets.

@cleverca22
Created March 25, 2019 11:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cleverca22/4118612da04b957b27f3aa106272cc54 to your computer and use it in GitHub Desktop.
Save cleverca22/4118612da04b957b27f3aa106272cc54 to your computer and use it in GitHub Desktop.
with import <nixpkgs>{};
let
mypkgs = haskell.packages.ghc844.override {
overrides = super: self: {
hmatrix = haskell.lib.overrideCabal (haskell.lib.doJailbreak (self.callHackage "hmatrix" "0.15.0.0" {})) (drv: {
patches = [ ./hide-join.patch ];
});
};
};
in
mypkgs.kmeans-par
diff -r -u -Z hmatrix-0.15.0.0-orig/lib/Data/Packed/Internal/Vector.hs hmatrix-0.15.0.0/lib/Data/Packed/Internal/Vector.hs
--- hmatrix-0.15.0.0-orig/lib/Data/Packed/Internal/Vector.hs 2019-03-25 08:28:38.802120030 -0300
+++ hmatrix-0.15.0.0/lib/Data/Packed/Internal/Vector.hs 2019-03-25 08:33:22.123932601 -0300
@@ -50,7 +50,7 @@
import Foreign.ForeignPtr (mallocForeignPtrBytes)
#endif
-import GHC.Base
+import GHC.Base hiding (join)
#if __GLASGOW_HASKELL__ < 612
import GHC.IOBase hiding (liftIO)
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment