-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Parse and render JSON simply. -- -- Derulo parses and renders JSON simply. @package derulo @version 2.0.0.1 -- | Derulo parses and renders JSON simply. It aims to provide an RFC 7159 -- compliant parser and renderer without incurring any dependencies. It -- is intended to be used either for learning or in situations where -- dependencies are unwanted. In normal usage, prefer a faster, more -- robust library like Aeson. -- -- Derulo does not export any identifiers that conflict with the prelude -- and can be imported unqualified. -- --
--   >>> import Derulo
--   
-- -- Use readJSON to parse a String into a JSON value. -- --
--   >>> readJSON " null "
--   Just Null
--   
-- -- Use showJSON to render a JSON value as a String. -- --
--   >>> showJSON Null
--   "null"
--   
module Derulo -- | A JSON value as described by RFC 7159. data JSON Null :: JSON Boolean :: Bool -> JSON Number :: Integer -> Integer -> JSON String :: String -> JSON Array :: [JSON] -> JSON Object :: [(String, JSON)] -> JSON -- | Parses a string as JSON. readJSON :: String -> Maybe JSON -- | Renders JSON as a string. showJSON :: JSON -> String instance GHC.Show.Show Derulo.JSON instance GHC.Read.Read Derulo.JSON instance GHC.Classes.Ord Derulo.JSON instance GHC.Generics.Generic Derulo.JSON instance GHC.Classes.Eq Derulo.JSON instance Data.Data.Data Derulo.JSON