From f1893a8d92411bd984bb94466caf85f0ca3e4de3 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Mon, 13 Apr 2020 10:43:29 +0800 Subject: [PATCH] stack-2.1 failed to build with Cabal-3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [1 of 2] Compiling Main ( /var/stackage/work/unpack-dir/unpacked/stack-2.1.3.1-ec7fb20d187731e0b610eb0567bf940e4c43c 690b8c611670d066e0a751660b5/Setup.hs, /var/stackage/work/unpack-dir/unpacked/stack-2.1.3.1-ec7fb20d187731e0b610eb0567bf940e4c43c690b 8c611670d066e0a751660b5/.stack-work/dist/x86_64-linux/Cabal-3.0.1.0/setup/Main.o ) /var/stackage/work/unpack-dir/unpacked/stack-2.1.3.1-ec7fb20d187731e0b610eb0567bf940e4c43c690b8c611670d066e0a751660b5/Setup.hs:6 :42: error: Module ‘Distribution.Package’ does not export ‘InstalledPackageId’ | 6 | import Distribution.Package ( PackageId, InstalledPackageId, packageVersion, packageName ) | ^^^^^^^^^^^^^^^^^^ /var/stackage/work/unpack-dir/unpacked/stack-2.1.3.1-ec7fb20d187731e0b610eb0567bf940e4c43c690b8c611670d066e0a751660b5/Setup.hs:8 :60: error: Module ‘Distribution.InstalledPackageInfo’ does not export ‘installedPackageId’ | 8 | import Distribution.InstalledPackageInfo (sourcePackageId, installedPackageId) | ^^^^^^^^^^^^^^^^^^ /var/stackage/work/unpack-dir/unpacked/stack-2.1.3.1-ec7fb20d187731e0b610eb0567bf940e4c43c690b8c611670d066e0a751660b5/Setup.hs:1 0:36: error: Module ‘Distribution.Simple.Utils’ does not export ‘rewriteFile’ | 10 | import Distribution.Simple.Utils ( rewriteFile, createDirectoryIfMissingVerbose ) | ^^^^^^^^^^^ /var/stackage/work/unpack-dir/unpacked/stack-2.1.3.1-ec7fb20d187731e0b610eb0567bf940e4c43c690b8c611670d066e0a751660b5/Setup.hs:1 1:41: error: Module ‘Distribution.Simple.BuildPaths’ does not export ‘autogenModulesDir’ | 11 | import Distribution.Simple.BuildPaths ( autogenModulesDir ) | ^^^^^^^^^^^^^^^^^ /var/stackage/work/unpack-dir/unpacked/stack-2.1.3.1-ec7fb20d187731e0b610eb0567bf940e4c43c690b8c611670d066e0a751660b5/Setup.hs:1 8:31: error: Module ‘Distribution.Version’ does not export ‘showVersion’ | 18 | import Distribution.Version ( showVersion ) | ^^^^^^^^^^^ --- build-constraints.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-constraints.yaml b/build-constraints.yaml index 8472d1a3..50ea6664 100644 --- a/build-constraints.yaml +++ b/build-constraints.yaml @@ -1380,7 +1380,7 @@ packages: - hpack - bindings-uname - stack < 9.9.9 # see https://github.com/fpco/stackage/issues/3563 - - stack + - stack < 0 # build issues with Cabal "Michael Sloan @mgsloan": - th-orphans