File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 77 echo "import Distribution.Simple" > Setup.hs
88 echo "main = defaultMain" >> Setup.hs
99 fi
10- export GHCV=$(ghc --numeric-version)
1110 runhaskell Setup configure --prefix=%PREFIX% \
1211 --libdir=%libdir% \
1312 --libsubdir="\$compiler/lib/\$abi/\$pkg-\$version" \
@@ -44,11 +43,11 @@ actions:
4443 - cabal_configure : |
4544 function cabal_configure() {
4645 export CABAL_DIR="$HOME/.cabal"
47- export GHCV=$(ghc --numeric-version )
46+ export GHCV=$(ghc-pkg field ghc id | cut -d ' ' -f 2 )
4847 cabal update
4948 cabal build %JOBS% --only-dependencies --disable-tests -O2 --ghc-options="-H128m %JOBS%" "$@"
5049 %haskell_configure --disable-executable-dynamic \
51- --package-db=$HOME/.cabal/store/ghc- $GHCV/package.db \
50+ --package-db=$HOME/.cabal/store/$GHCV/package.db \
5251 "$@"
5352 }
5453 cabal_configure
You can’t perform that action at this time.
0 commit comments