In the Json.Decode docs 
<http://package.elm-lang.org/packages/elm-lang/core/5.0.0/Json-Decode> I 
ran into unfamiliar functions in an example in the lazy 
<http://package.elm-lang.org/packages/elm-lang/core/5.0.0/Json-Decode#lazy> 
section.

comment : Decoder Commentcomment =
  object Comment
    |> required "message" string
    |> required "responses" (map Responses (list (lazy (\_ -> comment))))


After some digging, I discovered that required function is in fact part of 
a different package: elm-decode-pipeline 
<http://package.elm-lang.org/packages/NoRedInk/elm-decode-pipeline/latest>
I do not know where the `object` function is from.

To save others a similar search, and to make things clearer, I would 
suggest to remove the `object` and `required` from the examples in the docs,
or make an explicit reference to the package(s) where the come from.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to