Add more export lists
commit928c603acf7f67f1bbba8ea3c49af021493aa8b3
authorAdam Bergmark <adam@bergmark.nl>
dateSat 30 Jul 2016, 15:55 (10 years ago)
parent4a74cee
Data/Aeson/TH.hs+6−2
@@ -86,8 +86,12 @@ $('deriveJSON' 'defaultOptions' ''(,,,))
8686-}
8787
8888module Data.Aeson.TH
89− ( -- * Encoding configuration
90− Options(..), SumEncoding(..), defaultOptions, defaultTaggedObject
89+ (
90+ -- * Encoding configuration
91+ Options(..)
92+ , SumEncoding(..)
93+ , defaultOptions
94+ , defaultTaggedObject
9195
9296 -- * FromJSON and ToJSON derivation
9397 , deriveJSON
Data/Aeson/Types/FromJSON.hs+1−1
@@ -47,7 +47,7 @@ module Data.Aeson.Types.FromJSON
4747 -- * List functions
4848 , listParser
4949
50− -- * Inspecting @'Value's@
50+ -- * Inspecting @'Value's@
5151 , withObject
5252 , withText
5353 , withArray
Data/Aeson/Types/Generic.hs+12−1
@@ -23,7 +23,18 @@
2323--
2424-- Helpers for generic derivations.
2525
26−module Data.Aeson.Types.Generic where
26+module Data.Aeson.Types.Generic
27+ (
28+ IsRecord(..)
29+ , AllNullary(..)
30+ , Tagged2(..)
31+ , True
32+ , False
33+ , And
34+ , Zero
35+ , One
36+ , ProductSize(..)
37+ ) where
2738
2839import Prelude ()
2940import Prelude.Compat
benchmarks/AesonCompareAutoInstances.hs+1−1
@@ -2,7 +2,7 @@
22{-# LANGUAGE DeriveGeneric #-}
33{-# LANGUAGE TemplateHaskell #-}
44
5−module Main where
5+module Main (main) where
66
77import Prelude ()
88import Prelude.Compat
benchmarks/AesonEncode.hs+2
@@ -1,6 +1,8 @@
11{-# LANGUAGE BangPatterns #-}
22{-# LANGUAGE OverloadedStrings #-}
33
4+module Main (main) where
5+
46import Prelude ()
57import Prelude.Compat
68
benchmarks/AesonFoldable.hs+3
@@ -1,5 +1,8 @@
11{-# LANGUAGE OverloadedStrings #-}
22{-# LANGUAGE PackageImports #-}
3+
4+module Main (main) where
5+
36import Criterion.Main
47
58import Prelude ()
benchmarks/AesonMap.hs+2
@@ -5,6 +5,8 @@
55
66{-# OPTIONS_GHC -fno-warn-orphans #-}
77
8+module Main (main) where
9+
810import Prelude ()
911import Prelude.Compat
1012
benchmarks/AesonParse.hs+2
@@ -2,6 +2,8 @@
22{-# LANGUAGE OverloadedStrings #-}
33{-# LANGUAGE PackageImports #-}
44
5+module Main (main) where
6+
57import Prelude ()
68import Prelude.Compat
79
benchmarks/AesonTuples.hs+2
@@ -1,5 +1,7 @@
11module Main where
22
3+module Main (main) where
4+
35import Prelude ()
46import Prelude.Compat
57
benchmarks/CompareWithJSON.hs+2
@@ -1,5 +1,7 @@
11{-# OPTIONS_GHC -fno-warn-orphans #-}
22
3+module Main (main) where
4+
35import Prelude ()
46import Prelude.Compat
57
benchmarks/Dates.hs+2
@@ -1,3 +1,5 @@
1+module Main (main) where
2+
13import Prelude ()
24import Prelude.Compat
35
benchmarks/JsonParse.hs+2
@@ -2,6 +2,8 @@
22{-# LANGUAGE ScopedTypeVariables #-}
33{-# OPTIONS_GHC -fno-warn-orphans #-}
44
5+module Main (main) where
6+
57import Prelude ()
68import Prelude.Compat
79
benchmarks/Options.hs+1−1
@@ -1,4 +1,4 @@
1−module Options where
1+module Options () where
22
33import Prelude ()
44import Prelude.Compat
benchmarks/ReadFile.hs+2
@@ -1,6 +1,8 @@
11{-# LANGUAGE BangPatterns #-}
22{-# LANGUAGE OverloadedStrings #-}
33
4+module Main (main) where
5+
46import Prelude ()
57import Prelude.Compat
68
examples/Generic.hs+2
@@ -8,6 +8,8 @@
88{-# LANGUAGE DeriveGeneric #-}
99{-# LANGUAGE OverloadedStrings #-}
1010
11+module Main (main) where
12+
1113import Prelude ()
1214import Prelude.Compat
1315
examples/Simplest.hs+2
@@ -1,6 +1,8 @@
11{-# LANGUAGE OverloadedStrings #-}
22{-# LANGUAGE RecordWildCards #-}
33
4+module Main (main) where
5+
46import Prelude ()
57import Prelude.Compat
68
examples/TemplateHaskell.hs+2
@@ -4,6 +4,8 @@
44{-# LANGUAGE OverloadedStrings #-}
55{-# LANGUAGE TemplateHaskell #-}
66
7+module Main (main) where
8+
79import Prelude ()
810import Prelude.Compat
911
stack.yaml → stack-lts6.yamlrenamed
The content is the same.
tests/DataFamilies/Instances.hs+1−1
@@ -4,7 +4,7 @@
44{-# LANGUAGE TypeFamilies #-}
55{-# OPTIONS_GHC -fno-warn-orphans #-}
66
7−module DataFamilies.Instances where
7+module DataFamilies.Instances () where
88
99import Control.Applicative
1010import Data.Aeson.TH
tests/Functions.hs+5−1
@@ -1,4 +1,8 @@
1−module Functions where
1+module Functions
2+ (
3+ approxEq
4+ , approxEqWith
5+ ) where
26
37approxEq :: (Fractional a, Ord a) => a -> a -> Bool
48approxEq = approxEqWith 1e-15 1e-15
tests/Instances.hs+1−1
@@ -6,7 +6,7 @@
66{-# LANGUAGE StandaloneDeriving #-}
77{-# OPTIONS_GHC -fno-warn-orphans #-}
88
9−module Instances where
9+module Instances () where
1010
1111import Prelude ()
1212import Prelude.Compat
tests/UnitTests.hs+5−1
@@ -11,7 +11,11 @@
1111
1212{-# OPTIONS_GHC -fno-warn-deprecations #-}
1313
14−module UnitTests (ioTests, tests) where
14+module UnitTests
15+ (
16+ ioTests
17+ , tests
18+ ) where
1519
1620import Prelude ()
1721import Prelude.Compat
tests/UnitTests/NullaryConstructors.hs+4−1
@@ -2,7 +2,10 @@
22
33{-# OPTIONS_GHC -fno-warn-deprecations #-}
44
5−module UnitTests.NullaryConstructors (nullaryConstructors) where
5+module UnitTests.NullaryConstructors
6+ (
7+ nullaryConstructors
8+ ) where
69
710import Data.Aeson (decode, eitherDecode, fromEncoding, Value)
811import Data.Aeson.Internal (IResult (..), iparse)