From 92ebc150e1fc936c37e2159863bcd95e77b1d661 Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Sat, 4 Jun 2016 16:01:34 -0700 Subject: [PATCH 1/2] :skull: Delete dead code --- src/Json/Decode/Extra.elm | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/Json/Decode/Extra.elm b/src/Json/Decode/Extra.elm index 7321708..7dc8d77 100644 --- a/src/Json/Decode/Extra.elm +++ b/src/Json/Decode/Extra.elm @@ -212,17 +212,6 @@ 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) From b0090044082a61dd4052813d3a6a08dd14f86efd Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Sat, 4 Jun 2016 16:01:58 -0700 Subject: [PATCH 2/2] Fix docs for date --- src/Json/Decode/Extra.elm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Json/Decode/Extra.elm b/src/Json/Decode/Extra.elm index 7dc8d77..c5d18dd 100644 --- a/src/Json/Decode/Extra.elm +++ b/src/Json/Decode/Extra.elm @@ -201,11 +201,7 @@ 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 =