NixLabConnectionconnecting
ProjectsProject
package-sets/haskell /

horizon-dependent

publicguest

Dependent Haskell: the TharkunAB GHC 10.1 fork with -XDependentTypes, dependent-base and its proof plugins.

git clone git@nixlab.openfp.net:package-sets/haskell/horizon-dependent.git
c6041aa93ff4ff13acaff11e2cde936e6421bd3cpatches/dependent-proof-search.patch
diff --git a/test/Main.hs b/test/Main.hs
index 6f440dd..8ccfc8e 100644
--- a/test/Main.hs
+++ b/test/Main.hs
@@ -51,7 +51,9 @@ discoverTestCompiler = do
     pkgDbFlags <-
         case mbBuildRoot of
             Just root -> findPackageDbs exePath root
-            Nothing -> pure ["-plugin-package", "dependent-proof-search"]
+            Nothing -> do
+                inplace <- doesDirectoryExist "dist/package.conf.inplace"
+                pure (["-package-db=dist/package.conf.inplace" | inplace] ++ ["-plugin-package", "dependent-proof-search"])
     pure TestCompiler{tcGhc = ghcBin, tcPkgDbFlags = pkgDbFlags}
 
 -- | Discover the host @ghc@ binary on Linux from the linked @libHSbase@/@libHSrts@ path.