import Html exposing (text)
import Json.Decode as Decode exposing (..)
main =
text <| toString test
test =
[ succeed "cool"
, fail "oh"
, null "what?"
]
|> List.map (flip decodeString "") let
x' =
if x == "" then "\"\"" else x
in
case decodeString decoder x' of
...See https://github.com/elm-lang/core/issues/585. Considered a bug.
--
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Add this as a comment on the GitHub issue, then?