Skip to content

eskimor/purescript-bridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d43987e · Jan 30, 2024
Mar 26, 2023
Sep 24, 2023
Jan 15, 2024
Jul 20, 2023
Mar 26, 2023
Sep 24, 2023
Mar 19, 2023
May 13, 2016
Mar 27, 2023
Feb 19, 2023
Sep 24, 2023
Sep 24, 2023
Sep 24, 2023
Jan 28, 2023
Sep 24, 2023
Jun 12, 2016
Sep 5, 2016
Mar 7, 2020
Aug 22, 2016

Repository files navigation

purescript-bridge

Haskell library and example Purescript example Nix Flake

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!

Contributing

Formatting the source code

This repo uses stylish-haskell. .stylish-haskell.yaml is provided.

find . -name '*.hs' | xargs stylish-haskell -i