All Downloads are FREE. Search and download functionalities are using the official Maven repository.

elm.customTypeDecoder.mustache Maven / Gradle / Ivy

There is a newer version: 3.3.4.2
Show newest version
{{vendorExtensions.elmDecoder}} : Decoder {{vendorExtensions.elmCustomType}}
{{vendorExtensions.elmDecoder}} =
    Decode.string
        |> Decode.andThen
            (\str ->
                case str of
{{#allowableValues}}
{{#enumVars}}
                    {{{value}}} ->
                        Decode.succeed {{name}}

{{/enumVars}}
{{/allowableValues}}
                    other ->
                        Decode.fail <| "Unknown type: " ++ other
            )




© 2015 - 2025 Weber Informatics LLC | Privacy Policy