[Index] [Quick Jump] Package maintainers For package maintainers and hackage trustees Candidates 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. 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!


Keywords
library, web, Propose Tags , Skip to Readme, , Index, Quick Jump, Language.PureScript.Bridge, Language.PureScript.Bridge.Builder, Language.PureScript.Bridge.CodeGenSwitches, Language.PureScript.Bridge.PSTypes, Language.PureScript.Bridge.Primitives, Language.PureScript.Bridge.Printer, Language.PureScript.Bridge.SumType, Language.PureScript.Bridge.Tuple, Language.PureScript.Bridge.TypeInfo, Language.PureScript.Bridge.TypeParameters, purescript-bridge-0.15.0.0.tar.gz, browse, Package description, Package maintainers, eskimo, peterbecich, edit package information , 0.3.0.2, aeson, purescript-argonaut-aeson-generic >=0.4.1, GitHub, purescript-foreign-generic, This branch, here
License
BSD-3-Clause
Install
cabal install purescript-bridge-0.11.1.0

Documentation

purescript-bridge

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:

Documentation

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

Status

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