The purescript-bridge package

[maintain]
Warnings:

[Skip to ReadMe]

Properties

Versions0.1.0.0, 0.3.0.0, 0.3.0.2, 0.3.0.2, 0.3.0.3, 0.3.0.4, 0.3.0.5, 0.3.0.6, 0.3.1.0, 0.3.1.1, 0.3.2.0, 0.4.0.0, 0.6.0.0, 0.6.0.1, 0.6.0.2, 0.7.0.0, 0.7.0.1, 0.8.0.0, 0.8.0.1, 0.9.0.0, 0.10.0.0, 0.10.1.0
Dependenciesbase (==4.8.*), containers, directory, filepath, generic-deriving, text [details]
LicenseAGPL-3
AuthorRobert Klotzner
Maintainerrobert.klotzner@gmx.at
CategoryWeb
Source repositoryhead: git clone https://github.com/eskimor/purescript-bridge.git
UploadedWed Mar 23 12:45:33 UTC 2016 by eskimo

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for purescript-bridge-0.3.0.2

purescript-bridge

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!