stack
overrides the mintty-0.1.3
default requirement for Win32-2.13.1
, causing build errors
#117
Labels
Windows
Relates to Windows operating system
On Windows,
ansi-terminal
depends on packagemintty
to detect MinTTY terminals. The current version ofmintty
(version 0.1.3), by default, depends onWin32-2.13.1
or greater (mintty
flagWin32-2-13-1
is set by default).Win32
is one of the libraries that ships with GHC. GHC 8.10.7 ships withWin32-2.6.2.1
and GHC 9.0.1 ships withWin32-2.10.0.0
.On Stackage, snapshots
lts-18.17
(GHC 8.10.7) andnightly-2021-11-15
(GHC 9.0.1) include versions ofWin32
before version 2.13.1. Thestack
tool assumes that it is the snapshot version that is required and the.cabal
file is mistaken, reporting:Ignoring
mintty
's bounds onWin32
causesstack build
to fail with errors like:The alternative solutions are:
Win32
that is 2.13.1 or greater as anextra-dep
in the relevantstack.yaml
. This causesstack
to assume that thecabal
file dependency is to be trusted.mintty
before 0.1.3 in the relevant.cabal
file. However,mintty-0.1.3
was released to fix a bug that would makeisMinTTY
incorrectly returnFalse
on recent versions of MinTTY. Specifiyngmintty < 0.1.3
will promptstack
to suggest anextra-dep
.mintty
flagWin32-2-13-1
. This will causemintty
to depend on versions ofWin32
before 2.13.1.See also discussion in #114.
The text was updated successfully, but these errors were encountered: