proto-lens-jsonpb: JSON protobuf encoding for proto-lens

[ bsd3, library, web ] [ Propose Tags ]

Please see the README on GitHub at

[Skip to Readme]
Versions [RSS] [faq],,,
Dependencies aeson (>=1.4 && <1.6), attoparsec (>=, base (>=4.7 && <5), base64-bytestring (>=1), bytestring (>=0.10.8), proto-lens-runtime (>=0.5 && <0.8), text (>= && <1.3), vector (>= [details]
License BSD-3-Clause
Copyright 2019 Timothy Clem
Author Timothy Clem
Category Web
Home page
Bug tracker
Source repo head: git clone
Uploaded by rewinfrey at 2020-08-25T18:41:51Z
Distributions NixOS:
Downloads 1041 total (16 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs uploaded by user
Build status unknown [no reports yet]


[Index] [Quick Jump]


Maintainer's Corner

For package maintainers and hackage trustees


Readme for proto-lens-jsonpb-

[back to package description]


Quick hack to generate orphan ToJSON/FromJSON instances for proto-lens.

This requires the use of proto-lens to generate haskell datatypes from proto messages.


  1. Install protoc (e.g., brew install protoc)
  2. Install the required protoc plugins:
    • cabal install proto-lens-protoc
    • go get


Use the protoc plugin to generate associated protobuf types from a proto file.

protoc -I=. --proto_path=./proto \
  --plugin=protoc-gen-haskell=`which proto-lens-protoc` --haskell_out=./app \
  --plugin=protoc-gen-jsonpb_haskell=./script/run-jsonpb_haskell --jsonpb_haskell_out=./app \