Skip to content

Bump tls to 2.2.2 in flake and stack - #1581

Merged
gustavo-grieco merged 2 commits into
masterfrom
fix-tls-alchemy
Jul 24, 2026
Merged

Bump tls to 2.2.2 in flake and stack#1581
gustavo-grieco merged 2 commits into
masterfrom
fix-tls-alchemy

Conversation

@elopez

@elopez elopez commented Jun 19, 2026

Copy link
Copy Markdown
Member

tls < 2.2.2 is affected by haskell-tls/hs-tls#514.

tls 2.2.2 needs the crypton-x509 1.8 line, which still builds against crypton 1.0.x (the 1.9 line would force crypton >= 1.1 and a much wider cascade). No crypton-connection release targets tls 2.2 (0.4.5 caps < 2.2, 0.4.6 needs >= 2.3), so its tls < 2.2 bound is relaxed, along with warp-tls and tls-session-manager (pulled in by Hoogle in the dev shell); all compile fine against 2.2.2.

In flake.nix the codegen cabal2nix is pinned to the un-overridden base set, otherwise regenerating tls via callHackageDirect loops (cabal2nix transitively depends on tls). stack.yaml additionally pins the crypton-asn1-*/crypton-pem/time-hourglass/hpke/ech-config packages that lts-23.24 lacks; nixpkgs-unstable already carries compatible versions.

elopez added 2 commits June 19, 2026 13:09
tls < 2.2.2 is affected by haskell-tls/hs-tls#515.

tls 2.2.2 needs the crypton-x509 1.8 line, which still builds against
crypton 1.0.x (the 1.9 line would force crypton >= 1.1 and a much wider
cascade). No crypton-connection release targets tls 2.2 (0.4.5 caps < 2.2,
0.4.6 needs >= 2.3), so its tls < 2.2 bound is relaxed, along with
warp-tls and tls-session-manager (pulled in by Hoogle in the dev shell);
all compile fine against 2.2.2.

In flake.nix the codegen cabal2nix is pinned to the un-overridden base
set, otherwise regenerating tls via callHackageDirect loops (cabal2nix
transitively depends on tls). stack.yaml additionally pins the
crypton-asn1-*/crypton-pem/time-hourglass/hpke/ech-config packages that
lts-23.24 lacks; nixpkgs-unstable already carries compatible versions.
crypton-connection 0.4.5 needs crypton-socks >= 0.6, which lts-23.24 does
not provide. Matches the version the flake already resolves.
@gustavo-grieco

Copy link
Copy Markdown
Collaborator

This works correctly in stack, let merge.

@gustavo-grieco
gustavo-grieco marked this pull request as ready for review July 24, 2026 13:41
@gustavo-grieco
gustavo-grieco merged commit 1e1d7a2 into master Jul 24, 2026
21 of 22 checks passed
@gustavo-grieco
gustavo-grieco deleted the fix-tls-alchemy branch July 24, 2026 13:41
@gustavo-grieco gustavo-grieco mentioned this pull request Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants