- Fix single enumerator encoding. Now matches aeson.
- Expose TypeParameterRef constructors. They are useful in some cases.
- Fix Decode record case when NamedConstructor is an OCamlRef, not a primitive.
- Support record, encode, decode for type that has a type parameter filled with a non-primitive type (eg. newtype Z = Z (Maybe X))
- Support sum-type constructors with non-primitive types
- Remove dodgy-imports warnings with latests wl.pprint text
- addDependentFile for embedded files
- Output BuckleScript code requires at least bs-platform 3.1.0.
- Change output BuckleScript code and test code to use
Belt.Result.t
instead ofJs.Result.t
.Js.Result.t
has been deprecated since bs-platform 3.1.0. - Add
OInt32
toOCaml.BuckleScript.Types.OCamlPrimitive
to convert HaskellInt32
to BuckleScriptint32
.
- Support GHC 8.2.2 and drop support for previous GHC versions. 'base >= 4.10' is a requirement.
- Replace 'typelits-witnesses' dependency with 'singletons'.
- Remove use of Overlappable from 'HasEmbeddedFile'. Use 'Nat' flags instead.
- Add 'runGoldenSpec' to automate Haskell side file checks.
- Alter 'SpecOptions servantURL' to 'Maybe String'. If it is nothing then produce specs that use files, if Just then spec that uses servant and files.
- Fix encoding for sum type with enumerator.
-
Properly convert Haskell types to OCaml types that have type parameters.
-
Fix cases when the order of type parameter declarations differs from the order they appear in right hand side of the type declaration.
-
Add 'template-haskell < 2.12.0.0' restriction. OCamlTypeInFile seems to break at runtime with version 2.12.0.0.
- Fix 'OCaml.BuckleScript.Encode.renderRef' for OBool.
-
Add 'OCamlType' instance for ByteString.
-
Add 'HaskellTypeName' to support servant test server for types without Generic. You must manually provide the type's name as a symbol.
- 'OCaml.BuckleScript.Encode.renderRef' now add parentheses when rendering: list, optional, either, pair, tuple3, tuple4, tuple5, tuple6.
- Support 'HasEmbeddedFile' for '(:<|>)'.
- 'HasDecoder' now unwraps all OCamlDatatype.
-
HasDecoder
properly supports Haskell types likedata X = X String Int
, product type with multiple unnamed records. -
Support
genericToOCamlDatatype
when one of the type's dependencies implements instance OCamlType withoutgenericToOCamlDatatype
.
- Remove
OCaml.File
. It was unexported, but was causing import errors because it depended on unincluded data files.