on 0.6.1.0 help sign in
56 lines 1.0 kB history raw
1{-# LANGUAGE CPP #-}
3-- |
4-- Module: Data.Aeson.Types
5-- Copyright: (c) 2011, 2012 Bryan O'Sullivan
6-- (c) 2011 MailRank, Inc.
7-- License: Apache
8-- Maintainer: Bryan O'Sullivan <bos@serpentine.com>
9-- Stability: experimental
10-- Portability: portable
11--
12-- Types for working with JSON data.
14module Data.Aeson.Types
15 (
16 -- * Core JSON types
17 Value(..)
18 , Array
19 , emptyArray
20 , Pair
21 , Object
22 , emptyObject
23 -- * Convenience types and functions
24 , DotNetTime(..)
25 , typeMismatch
26 -- * Type conversion
27 , Parser
28 , Result(..)
29 , FromJSON(..)
30 , fromJSON
31 , parse
32 , parseEither
33 , parseMaybe
34 , ToJSON(..)
36 -- * Inspecting @'Value's@
37 , withObject
38 , withText
39 , withArray
40 , withNumber
41 , withBool
43 -- * Constructors and accessors
44 , (.=)
45 , (.:)
46 , (.:?)
47 , (.!=)
48 , object
49 ) where
51import Data.Aeson.Types.Class
52import Data.Aeson.Types.Internal
54#ifdef GENERICS
55import Data.Aeson.Types.Generic ()
56#endif