# tls (Haskell)

> TLS 1.2 and 1.3 client and server written purely in Haskell

Source: https://talira.ai/catalog/tls-haskell-2m8pj75p
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [networking / tls](https://talira.ai/categories/networking/tls), [languages / haskell](https://talira.ai/categories/languages/haskell)
- Licence: BSD-3-Clause[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Vincent Hanquez](https://talira.ai/orgs/vincent-hanquez.md), [Kazu Yamamoto](https://talira.ai/orgs/kazu-yamamoto.md)

tls (Haskell TLS) is a TLS 1.2 and 1.3 client and server library written purely in Haskell, with companion libraries for an in-memory session store and session tickets (tls-session-manager) and for Encrypted Client Hello configuration (ech-config), plus tls-client and tls-server commands. By default it negotiates only TLS 1.3 and 1.2, uses AEAD cipher suites, requires the Extended Main Secret on TLS 1.2, keeps 0-RTT off and includes the hybrid X25519MLKEM768 key exchange. Its primitives come from crypton, and it's fuzzed weekly with tlsfuzzer.

## Links

- GitHub: https://github.com/haskell-tls/hs-tls

## Problems it solves

- add TLS to a Haskell network server without binding to OpenSSL
- make HTTPS connections from Haskell
- use TLS 1.3 with Encrypted Client Hello in Haskell

## Features

- TLS 1.2 and 1.3 client and server in pure Haskell
- AEAD-only cipher suites by default, with CBC opt-in
- hybrid X25519MLKEM768 key exchange
- Encrypted Client Hello configuration (ech-config)
- in-memory session store and session tickets (tls-session-manager)
- certificate chain and host name validation against the system store

## Limitations

- It has not been audited by a third party.[^1]
- Certificate revocation isn't checked: neither OCSP nor CRLs are used.[^1]
- The Haskell record layer can't be guaranteed to run in constant time.[^1]

## Trust

Overall: 0.59 out of 1.
Signals: maintenance 1.00, adoption 0.52, momentum 0.15, community 0.73, backing 0.30, extensibility 0.00.

- last commit yesterday
- 393 commits in the last 90 days
- 415 GitHub stars
- 65 contributors
- backed by Vincent Hanquez and Kazu Yamamoto

## Sources

[^1]: https://github.com/haskell-tls/hs-tls/blob/main/README.md (checked 28 Nov 2026)
[^2]: https://github.com/haskell-tls/hs-tls/blob/main/LICENSE (checked 28 Nov 2026)
