purescript-bridge: Generate PureScript data types from Haskell data types

[ bsd3, library, web ] [ Propose Tags ]

[Skip to Readme]
Versions [RSS] [faq],,,,,,,,,,,,,,,,,,,,,,,,,,,
Dependencies base (==4.8.*), containers, directory, filepath, generic-deriving, text [details]
License AGPL-3.0-only
Author Robert Klotzner
Maintainer robert.klotzner@gmx.at
Category Web
Source repo head: git clone https://github.com/eskimor/purescript-bridge.git
Uploaded by eskimo at 2016-03-23T12:50:12Z
Distributions LTSHaskell:, NixOS:, Stackage:
Downloads 18862 total (147 in the last 30 days)
Rating 1.25 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
All reported builds failed as of 2016-11-27 [all 2 reports]


  • Language
    • PureScript
      • Language.PureScript.Bridge
        • Language.PureScript.Bridge.Primitives
        • Language.PureScript.Bridge.Printer
        • Language.PureScript.Bridge.SumType
        • Language.PureScript.Bridge.Tuple
        • Language.PureScript.Bridge.TypeInfo
        • Language.PureScript.Bridge.TypeParameters


Maintainer's Corner

For package maintainers and hackage trustees


Readme for purescript-bridge-

[back to package description]


Translate your Haskell types to PureScript types.

For compatible JSON representations you should be using aeson's generic encoding/decoding with default options and gAesonEncodeJson and gAesonDecodeJson from the purescript-argonaut-codecs package, (Data.Argonaut.Aeson).

At the time of this writing the PR providing Data.Argonaut.Aeson was not yet merged. In the meantime, you can find the PR here.

Usage of this library is documented in Language.Purescript.Bridge.

All you should need to get started is: writePSTypes.

You can customize data type translation by providing your own TypeBridge.

This library is at a really early stage. It works for my use case at the moment and I will fix bugs when they come along.

Expect bugs - especially for more advanced use cases!