elm-street-0.1.0.0: Crossing the road between Haskell and Elm

Safe HaskellNone
LanguageHaskell2010

Elm.Print.Encoder

Contents

Description

Pretty-printing functions for Encoder.elm module. Also contains encoders for common types which go to the ElmStreet.elm module.

Synopsis

Documentation

prettyShowEncoder :: ElmDefinition -> Text Source #

Returns the encoder for the given type.

TODO

Haskell Type Eml Type Encoder JSON
Int Int standard encoder

Standard missing encoders

encodeMaybe :: Text Source #

JSON encoder Elm help function for Maybes.

encodeEither :: Text Source #

JSON encoder Elm help function for Eithers.

encodePair :: Text Source #

JSON encoder Elm help function for 2-tuples.

encodeTriple :: Text Source #

JSON encoder Elm help function for 3-tuples.