Skip to content

Instantly share code, notes, and snippets.

@liamcurry
Last active May 19, 2016 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liamcurry/a4ec6b4b4c4f1a89f72e596b75152008 to your computer and use it in GitHub Desktop.
Save liamcurry/a4ec6b4b4c4f1a89f72e596b75152008 to your computer and use it in GitHub Desktop.
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