A lens-based implementation of protocol buffers in Haskell.

Version on this page:
LTS Haskell 22.11:
Stackage Nightly 2023-12-26:
Latest on Hackage:

See all snapshots proto-lens appears in

BSD-3-Clause licensed by Judah Jacobson
Maintained by [email protected]
This version can be pinned in stack with:proto-lens-,1646

The proto-lens library provides to protocol buffers using modern Haskell language and library patterns. Specifically, it provides:

  • Composable field accessors via lenses

  • Simple field name resolution/overloading via type-level literals

  • Type-safe reflection and encoding/decoding of messages via GADTs