Skip to content

mlabs-haskell/servant-purescript

 
 

Repository files navigation

Servant Purescript

Generate typed PureScript query functions for your servant-api. To see how the resulting client code looks, look at the golden tests.

Features

  • Typed serialization/deserialization, taken care of by Haskell's aeson and PureScript's argonaut.
  • You can put common parameters like Auth tokens and the base URL in a reader monad, so you don't have to pass them explicitly. This is configurable in the code generator with readerParams in Settings.

Usage

Apart from the above basic usage example, the documentation is still lacking.

Status

This is a highly specialized and transitionary fork of the original (unmaintained) servant-purescript for IOHK. It is tailored to our needs speciically. Use at your own risk.

For type translations purescript-bridge is used.

About

Translate servant API to purescript code, with the help of purescript-bridge.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Haskell 74.1%
  • PureScript 14.7%
  • Nix 5.8%
  • Dhall 5.4%