ghc versions: 9.2.8 ; 9.4.4 ; 9.6.1
I am always getting the same error:
```
Warning: connection.cabal:26:36: version operators used. To use version
operators the package needs to specify at least 'cabal-version: >= 1.8'.
Configuring connection-0.3.1...
Preprocessing library for connection-0.3.1..
Building library for connection-0.3.1..
[1 of 2] Compiling
Network.Connection.Types ( Network/Connection/Types.hs, dist/build/Network/Connection/
Types.o, dist/build/Network/Connection/
Types.dyn_o )
[2 of 2] Compiling Network.Connection ( Network/Connection.hs, dist/build/Network/Connection.
o, dist/build/Network/Connection.
dyn_o )
Network/Connection.hs:122:43: error:
• Couldn't match expected type ‘crypton-x509-store-1.6.9:
Data.X509.CertificateStore.
CertificateStore’
with actual type ‘Data.X509.CertificateStore.
CertificateStore’
NB: ‘crypton-x509-store-1.6.9:
Data.X509.CertificateStore.
CertificateStore’
is defined in ‘Data.X509.CertificateStore’
in package ‘crypton-x509-store-1.6.9’
‘Data.X509.CertificateStore.
CertificateStore’
is defined in ‘Data.X509.CertificateStore’
in package ‘x509-store-1.6.9’
• In the ‘sharedCAStore’ field of a record
In the ‘clientShared’ field of a record
In the expression:
(TLS.defaultParamsClient (fst cid) portString)
{TLS.clientSupported = def
{TLS.supportedCiphers = TLS.ciphersuite_default},
TLS.clientShared = def
{TLS.sharedCAStore = globalCertificateStore cg,
TLS.sharedValidationCache = validationCache}}
|
122 | { TLS.sharedCAStore = globalCertificateStore cg
| ^^^^^^^^^^^^^^^^^^^^^^^^^
cabal: Failed to build connection-0.3.1 (which is required by exe:pandoc from
pandoc-cli-0.1.1). See the build log above for details.
```
It seems to me that with `ghcup`, `cabal` is not picking the right versions of the toolchain.
How can I fix that? or should I install `pandoc` with `stack`?
I know that I can install `pandoc` on Mac with `brew`, but so far, installing `pandoc` with `cabal` always worked for me.