Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tuples do not convert correctly #30

Open
Muzz opened this issue Jun 29, 2017 · 0 comments
Open

Tuples do not convert correctly #30

Muzz opened this issue Jun 29, 2017 · 0 comments

Comments

@Muzz
Copy link

Muzz commented Jun 29, 2017

type alias ConvertedModel =
    { pickerMode : Int
    , activeColor : ( Float, Float, Float )
    }

will return

decodeConvertedModel : Json.Decode.Decoder ConvertedModel
decodeConvertedModel =
    Json.Decode.map4 ConvertedModel
        (field "pickerMode" Json.Decode.int)
        (field "activeColor" decode( Json.Decode.float)
        (field "Float" decode_Unknown)
        (field "Float )" decode_Unknown)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant