I don't have time to try this out at the moment, but I think you can
do something like this using `Json.Decode.andThen` to chain on more
attributes:
-- rough, untried code follows:
myDecoder : Decoder Box.Model
myDecoder =
object8 (,,,,,,,) ("a" := aDecoder) ... ("h" := hDecoder)
`andThen`
part2
part2 : (a,b,c,d,e,f,g,h) -> Decoder Box.Model
part2 (a,b,c,d,e,f,g,h) = object1 (Box.Model a b c d e f g h) ("i" := i)
(and also, you may want to consider if now is the time to make your
object graph skinnier and deeper)
Cheers,
--Aaron V.
> --
> 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
elm-discuss...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.
--
--Aaron V.
[
http://github.com/avh4 ]