It looks like a precedence problem in yer decoders

redditJsonResponseDecoder : Decoder RedditJsonResponse
redditJsonResponseDecoder =
    object2 RedditJsonResponse
        ("kind" := string)
        ("data"
            := object1 (\children -> { children = children })
                ("children"
                    :=  Json.list (object2 (\kind data -> { kind = kind,
data = data })
                        ("kind" := string)
                        ("data"
                            := object1 (\title -> { title = title })
                                ("title" := string)
                        ))

                )
        )

the above version works just fine.




On Sun, Sep 4, 2016 at 8:36 PM, Charlie Koster <[email protected]> wrote:

> When I say "array" I meant to type "list"
>
> --
> You received this message because you are subscribed to the Google Groups
> "Elm Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 
There is NO FATE, we are the creators.
blog: http://damoc.ro/

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to