Created
March 15, 2018 13:07
-
-
Save Chadtech/bc15cbfcaf0aa537a0cd9b20ee523b8b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| logDecode : String -> Decoder a -> Decoder a | |
| logDecode tag decoder = | |
| Decode.value | |
| |> Decode.andThen (logDecodeHelper tag decoder) | |
| logDecodeHelper : String -> Decoder -> Decode.Value -> Decoder a | |
| logDecodeHelper tag decoder json = | |
| let | |
| _ = | |
| Debug.log tag json | |
| in | |
| decoder | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment