Last active
May 19, 2016 18:30
-
-
Save liamcurry/a4ec6b4b4c4f1a89f72e596b75152008 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
import Json.Decode exposing (..) | |
import Html exposing (text) | |
main = | |
let | |
result = decodeString string "\"test\"" | |
in | |
case result of | |
Ok r -> | |
r |> toString |> text | |
Err e -> | |
text e |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment