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 acf7d4a 
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 
Michael Snoyman 8216c04 
basvandijk e5f70a5 
basvandijk 064ee0d 



basvandijk 96b9638 

basvandijk 064ee0d 

basvandijk e5f70a5 






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

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





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, 2012 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(..)
    , modifyFailure

#ifdef GENERICS
    -- ** Generic JSON classes
    , GFromJSON(..)
    , GToJSON(..)
    , genericToJSON
    , genericParseJSON
#endif

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

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

    -- * Generic and TH encoding configuration
    , Options(..)
    , SumEncoding(..)
    , defaultOptions
    , defaultObjectWithType
    ) where

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

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