The purescript-bridge package

[Tags:bsd3, library, test]

[Skip to Readme]


Dependencies base (>=4.8 && <6.0), containers, directory, filepath, generic-deriving, lens, mtl, text, transformers [details]
License BSD3
Author Robert Klotzner
Maintainer robert . klotzner A T gmx . at
Category Web
Source repository head: git clone
Uploaded Tue Mar 28 20:58:21 UTC 2017 by eskimo
Distributions LTSHaskell:, NixOS:, Stackage:, Tumbleweed:
Downloads 760 total (20 in the last 30 days)
0 []
Status Docs available [build log]
Last success reported on 2017-03-28 [all 1 reports]




Maintainer's Corner

For package maintainers and hackage trustees

Readme for purescript-bridge

Readme for purescript-bridge-


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!

JSON encoding / decoding

For compatible JSON representations you should be using aeson's generic encoding/decoding with default options and encodeJson and decodeJson from "Data.Argonaut.Generic.Aeson" in purescript-argonaut-generic-codecs.


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!