elm-street-0.1.0.4: Crossing the road between Haskell and Elm
Safe HaskellNone
LanguageHaskell2010

Elm.Print.Encoder

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 TypeEml TypeEncoderJSON
IntIntstandard 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.