ocaml-export-0.3.0.0: Convert Haskell types in OCaml types

CopyrightPlow Technologies 2017
LicenseBSD3
Maintainermchaver@gmail.com
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

OCaml.BuckleScript.Encode

Description

For a Haskell type with an instance of OCamlType, output an OCaml type to JSON (aeson) encoder.

Synopsis

Documentation

toOCamlEncoderSourceWith :: forall a. OCamlType a => Options -> a -> Text Source #

Convert a 'Proxy a' into OCaml type to JSON function source code without an interface file '.mli'.

toOCamlEncoderInterfaceWith :: forall a. OCamlType a => Options -> a -> Text Source #

Convert a 'Proxy a' into OCaml type to JSON function source code which expects an interface file '.ml'.