Hi Everyone, I'm busy bumping some old 0.17 code to 0.18 and ran into a problem I could figure out. I've got these blocks of code that rely on `Json.Decode.customDecoder`:
``` questionsDecoder : Json.Decode.Decoder Questions.Question questionsDecoder = Json.Decode.Pipeline.decode Questions.Question |> Json.Decode.Pipeline.required "question" Json.Decode.string |> Json.Decode.Pipeline.required "answer" Json.Decode.string |> Json.Decode.Pipeline.required "completed" Json.Decode.bool |> Json.Decode.Pipeline.required "editing" Json.Decode.bool |> Json.Decode.Pipeline.required "id" Json.Decode.int |> Json.Decode.Pipeline.required "paragraphId" Json.Decode.int |> Json.Decode.Pipeline.required "rows" Json.Decode.int |> Json.Decode.Pipeline.required "maxlength" Json.Decode.int |> Json.Decode.Pipeline.required "format"* formatStyleDecoder* formatStyleDecoder : Json.Decode.Decoder Format.FormatStyle *formatStyleDecode*r = let decodeToFormatStyle string = case string of "Normal" -> Result.Ok Format.Normal "Quotation" -> Result.Ok Format.Quotation "AuthorOfQuotation" -> Result.Ok Format.AuthorOfQuotation _ -> Result.Err ("Not a valid FormatStyle: " ++ string) in *Json.Decode.customDecoder Json.Decode.string decodeToFormatStyle* ``` I'm getting this error message: ``` Cannot find variable `Json.Decode.customDecoder`. 280| Json.Decode.customDecoder Json.Decode.string decodeToFormatStyle ^^^^^^^^^^^^^^^^^^^^ `Json.Decode` does not expose `customDecoder`. ``` Can anyone suggest what I should replace `customDecoder` with? -- 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.