Generate PureScript data types from Haskell data types

LTS Haskell 22.26:
Stackage Nightly 2024-06-22:
Latest on Hackage:

See all snapshots purescript-bridge appears in

BSD-3-Clause licensed by Robert Klotzner
Maintained by robert . klotzner A T gmx . at
This version can be pinned in stack with:purescript-bridge-,3219


Haskell library and example Purescript example Build Status

Translate your Haskell types to PureScript types. It should in theory work for almost all Haskell types, including type constructors! You just have to instantiate it with dummy parameters from e.g. “Language.PureScript.Bridge.TypeParameters”.

Data type translation is fully and easily customizable by providing your own BridgePart instances!

The latest version of this project requires Purescript 0.15.

JSON encoding / decoding

For compatible JSON representations:


Usage of this library is documented in Language.Purescript.Bridge, with writePSTypes you should have everything to get started. Documentation can be found here.


It works for my use case and is used in production. PRs for more PSTypes definitions and bridges are very welcome!