@@ -29,6 +29,7 @@ environment:
29 - BUILD_TYPE: "cabal"
29 - BUILD_TYPE: "cabal"
30 OSARCH: "windows-i386"
30 OSARCH: "windows-i386"
31 GHC_VERSION: "8.6.1.1"
31 GHC_VERSION: "8.6.1.1"
32+ GHC: "C:\\ProgramData\\chocolatey\\lib\\ghc\\tools\\ghc-8.6.1\\bin\\ghc.exe"
32 CABAL_VERSION: "2.4.0.0"
33 CABAL_VERSION: "2.4.0.0"
33 CABAL_STORE: "C:\\cs"
34 CABAL_STORE: "C:\\cs"
34 CABAL_BUILD_OPTS: "--allow-newer=base --allow-newer=template-haskell --allow-newer=containers -flua_32bits -fembed_data_files"
35 CABAL_BUILD_OPTS: "--allow-newer=base --allow-newer=template-haskell --allow-newer=containers -flua_32bits -fembed_data_files"
@@ -82,10 +83,13 @@ test_script:
82 echo "" | stack clean &&
83 echo "" | stack clean &&
83 echo "" | stack install --stack-yaml %STACK_YAML% %STACK_BUILD_OPTS% %STACK_FLAGS% pandoc pandoc-citeproc
84 echo "" | stack install --stack-yaml %STACK_YAML% %STACK_BUILD_OPTS% %STACK_FLAGS% pandoc pandoc-citeproc
86+ # Note: the new-repl step is a workaround:
87+ # see https://github.com/haskell/cabal/issues/5516
85 - if "%BUILD_TYPE%" == "cabal" (
88 - if "%BUILD_TYPE%" == "cabal" (
86 cabal --version &&
89 cabal --version &&
87 cabal --store-dir="%CABAL_STORE%" new-update &&
90 cabal --store-dir="%CABAL_STORE%" new-update &&
91+ echo "" | cabal new-repl -w %GHC% --build-dep fail &&
88− cabal --store-dir="%CABAL_STORE%" new-install -w C:\ProgramData\chocolatey\lib\ghc\tools\ghc-8.6.1\bin\ghc.exe --symlink-bindir=. %CABAL_BUILD_OPTS% . pandoc-citeproc
92+ cabal --store-dir="%CABAL_STORE%" new-install -w %GHC% --symlink-bindir=. %CABAL_BUILD_OPTS% . pandoc-citeproc
91after_test:
95after_test: