Source

aeson / Data / Aeson / Types.hs

Full commit
Bryan O'Sullivan 1d73233 
Bryan O'Sullivan 4fe1a3b 
Bryan O'Sullivan 9305520 
Bryan O'Sullivan 1e282f2 
Bryan O'Sullivan 2c92522 

Bryan O'Sullivan 1e282f2 
Bryan O'Sullivan a3fa824 
Bryan O'Sullivan 1e282f2 




Bryan O'Sullivan 7a5f020 

Bryan O'Sullivan 1e282f2 


Bryan O'Sullivan 841d43c 
Bryan O'Sullivan 326f892 
Bryan O'Sullivan 7a5f020 
Bryan O'Sullivan 841d43c 
Bryan O'Sullivan 5caabfc 
Bryan O'Sullivan c156c14 
Bryan O'Sullivan 5caabfc 
Bryan O'Sullivan 1e282f2 
Bryan O'Sullivan 398c800 

Bryan O'Sullivan 1e282f2 
Bryan O'Sullivan 398c800 

Bryan O'Sullivan 1a4eee3 

Bryan O'Sullivan 1e282f2 
basvandijk e5f70a5 







Bryan O'Sullivan 1e282f2 
Bryan O'Sullivan 7a5f020 

Bryan O'Sullivan 0ad9b37 
Herbert Valerio … ca1d23b 
Bryan O'Sullivan 7a5f020 


Bryan O'Sullivan 1d73233 
Bryan O'Sullivan 6916ea8 
Bryan O'Sullivan 7a5f020 
Bryan O'Sullivan 1d73233 

{-# LANGUAGE CPP #-}

-- |
-- Module:      Data.Aeson.Types
-- Copyright:   (c) 2011 Bryan O'Sullivan
--              (c) 2011 MailRank, Inc.
-- License:     Apache
-- Maintainer:  Bryan O'Sullivan <bos@serpentine.com>
-- Stability:   experimental
-- Portability: portable
--
-- Types for working with JSON data.

module Data.Aeson.Types
    (
    -- * Core JSON types
      Value(..)
    , Array
    , emptyArray
    , Pair
    , Object
    , emptyObject
    -- * Convenience types and functions
    , DotNetTime(..)
    , typeMismatch
    -- * Type conversion
    , Parser
    , Result(..)
    , FromJSON(..)
    , fromJSON
    , parse
    , parseEither
    , parseMaybe
    , ToJSON(..)

    -- * Inspecting @'Value's@
    , withObject
    , withText
    , withArray
    , withNumber
    , withBool

    -- * Constructors and accessors
    , (.=)
    , (.:)
    , (.:?)
    , (.!=)
    , object
    ) where

import Data.Aeson.Types.Class
import Data.Aeson.Types.Internal

#ifdef GENERICS
import Data.Aeson.Types.Generic ()
#endif