aeson / Data / Aeson / Types.hs

The default branch has multiple heads

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 







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, 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

    -- * 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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.