Skip to content

Commit

Permalink
Merge pull request #12 from rtfeldman/fix-date-docs
Browse files Browse the repository at this point in the history
Fix date docs
  • Loading branch information
Luke Westby committed Jun 8, 2016
2 parents 5e375d6 + b009004 commit f84d9fb
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions src/Json/Decode/Extra.elm
Original file line number Diff line number Diff line change
Expand Up @@ -201,28 +201,13 @@ We win!
apply


{-| Extract a date.
Note that this function is not total, it will throw an exception given an incorrectly formatted date.
See `Date.fromString` and `Json.customDecoder`.
{-| Extract a date using [`Date.fromString`](http://package.elm-lang.org/packages/elm-lang/core/latest/Date#fromString)
-}
date : Decoder Date.Date
date =
customDecoder string Date.fromString



-- {-| Extract a time value.
--
-- Note that this function is not total, it will throw an exception given an incorrectly formatted time value.
-- See `Time.fromString` and `Json.customDecoder`.
--
-- -}
-- time : Decoder Time.Time
-- time = customDecoder string (Date.fromString >> Date.toTime)


{-| Extract a set.
-}
set : Decoder comparable -> Decoder (Set comparable)
Expand Down

0 comments on commit f84d9fb

Please sign in to comment.