@@ -214,6 +214,6 @@ toRecord fields =
214 to "succeed" <== [ Opt.Record (map toFieldExpr fields) ]
214 to "succeed" <== [ Opt.Record (map toFieldExpr fields) ]
216 andThen (key, tipe) decoder =
216 andThen (key, tipe) decoder =
217− to "andThen" <== [ field key (decode tipe), Opt.Function [key] decoder ]
217+ to "andThen" <== [ Opt.Function [key] decoder, field key (decode tipe) ]
219 List.foldr andThen finalDecoder fields
219 List.foldr andThen finalDecoder fields