gitlab-haskell-1.0.0.5 build failure with crypton-connection-0.4.1
The type error:
[24 of 24] Compiling GitLab
/Users/dan/scratch/gitlab-haskell-1.0.0.5/src/GitLab.hs:90:37: error: [GHC-83865]
• Couldn't match expected type ‘TLSSettings’
with actual type ‘tls-2.0.6:Network.TLS.Parameters.Supported
-> TLSSettings’
• Probable cause: ‘TLSSettingsSimple’ is applied to too few arguments
In the first argument of ‘mkManagerSettings’, namely
‘(TLSSettingsSimple True False False)’
In the expression:
mkManagerSettings (TLSSettingsSimple True False False) Nothing
In an equation for ‘settings’:
settings
= mkManagerSettings (TLSSettingsSimple True False False) Nothing
|
90 | let settings = mkManagerSettings (TLSSettingsSimple True False False) Nothing
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I was able to reproduce this locally like so:
stack unpack gitlab-haskell-1.0.0.5 && cd gitlab-haskell-1.0.0.5
edit stack.yaml # add the following stack.yaml
stack build --test --bench --no-run-benchmarks --fast
# stack.yaml
resolver: nightly-2024-06-28
extra-deps:
- crypton-connection-0.4.1