homepage: https://github.com/Lupino/fay-simplejson
changelog-type: ''
hash: 64f368fefa52a5762689b5d78c221dfb9a15d9733e7fa97362ec909f74d193f5
test-bench-deps: {}
maintainer: lmjubuntu@gmail.com
synopsis: SimpleJSON library for Fay.
changelog: ''
basic-deps:
  fay-base: ! '>=0.18'
all-versions:
- '0.1.1.0'
author: Li Meng Jun
latest: '0.1.1.0'
description-type: markdown
description: ! "Fay SimpleJSON\n==============\n\nSimpleJSON library for Fay.\n\n```haskell\n{-#
  LANGUAGE OverloadedStrings #-}\n{-# LANGUAGE RebindableSyntax  #-}\n\nmodule Test
  (main) where\n\nimport           Data.Text  (Text, fromString)\nimport           Prelude\nimport
  \          SimpleJSON\n\ndata Test = Test { xKey :: Text, xValue :: Text }\ninstance
  JSONSetter Test\ninstance JSONGetter Test\n\ndecoder :: Decoder Test\ndecoder =
  withDecoder \"Test\" [\"xKey\" .> \"key\", \"xValue\" .> \"value\"]\n\nencoder ::
  Encoder TestJSON\nencoder = withEncoder [\"key\" .< \"xKey\", \"value\" .< \"xValue\"]\n\nmain
  :: Fay ()\nmain = do\n  let test = decode \"{\\\"key\\\": \\\"test_key\\\", \\\"value\\\":
  \\\"test_value\\\"}\" decoder\n  print test\n  print $ encode test encoder\n```\n\nUsage\n-----\n\n\nInstall:\n```bash\ncabal
  install fay-simplejson\n```\n\nCompile your file:\n\n```bash\nfay --package fay-simplejson
  MyFile.hs\n```\n"
license-name: BSD3

Update from Hackage at 2016-10-28T06:28:20Z
Update from Hackage at 2016-10-28T06:28:20Z
