"fieldName" := Json.list anotherDecoder becomes field "fieldName"
(Json.list anotherDecoder)
​

2016-11-16 11:44 GMT+01:00 Tim Bezhashvyly <[email protected]>:

> Sorry if I'm asking something obvious but with changes to Json.Decode in
> 0.18.0 I'm not quite sure how to pass results of one decoder to another.
>
> So in 0.17.1 it was:
>
> decoder : Json.Decoder SomeType
> decoder =
>  Json.object1 identity
>  ("feildName" := Json.list anotherDecoder)
>
> object1 becomes map,  "feildName" := Json.list becomes field "fieldName"
> Json.list. Just not sure about anotherDecoder.
>
> Thank you.
>
> --
> 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.
>

-- 
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