elmental-0.1.0.2: Generate Elm datatype definitions, encoders and decoders from Haskell datatypes.
Safe HaskellSafe-Inferred
LanguageGHC2021

Elmental.Generate

Synopsis

Documentation

generateTypeDef :: forall {k} (x :: k). HasElmStructure k x => Text Source #

Generate a type definition

generateEncoder :: forall {k} (x :: k). HasElmStructure k x => Text Source #

Generate an encoder

generateDecoder :: forall {k} (x :: k). HasElmStructure k x => Text Source #

Generate a decoder

include :: forall {k} x. HasElmStructure k x => SomeStructure Source #

data SomeStructure Source #

Constructors

forall x. SomeStructure (DatatypeStructure x)