Skip to content

Commit 4440287

Browse files
authored
Merge pull request #1024 from haskell/bump-lower-bounds-b
Bump lower bounds b
2 parents 553467e + d85ce45 commit 4440287

File tree

4 files changed

+5
-23
lines changed

4 files changed

+5
-23
lines changed

aeson.cabal

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,18 +129,18 @@ library
129129
build-depends:
130130
attoparsec >=0.14.2 && <0.15
131131
, data-fix >=0.3.2 && <0.4
132-
, dlist >=0.8.0.4 && <1.1
132+
, dlist >=1.0 && <1.1
133133
, hashable >=1.3.5.0 && <1.5
134134
, indexed-traversable >=0.1.2 && <0.2
135-
, OneTuple >=0.3.1 && <0.5
135+
, OneTuple >=0.4.1.1 && <0.5
136136
, primitive >=0.7.3.0 && <0.9
137137
, QuickCheck >=2.14.2 && <2.15
138138
, scientific >=0.3.7.0 && <0.4
139139
, semialign >=1.2 && <1.4
140140
, strict >=0.4 && <0.6
141141
, tagged >=0.8.6 && <0.9
142142
, text-short >=0.1.5 && <0.2
143-
, th-abstraction >=0.3.0.0 && <0.6
143+
, th-abstraction >=0.5.0.0 && <0.6
144144
, these >=1.1.1.1 && <1.3
145145
, unordered-containers >=0.2.10.0 && <0.3
146146
, uuid-types >=1.0.5 && <1.1

src/Data/Aeson/TH.hs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ import Data.Maybe (catMaybes, fromMaybe, mapMaybe)
138138
import qualified Data.Monoid as Monoid
139139
import Data.Set (Set)
140140
import Language.Haskell.TH hiding (Arity)
141-
import Language.Haskell.TH.Datatype as Datatype
141+
import Language.Haskell.TH.Datatype
142142
#if MIN_VERSION_template_haskell(2,8,0) && !(MIN_VERSION_template_haskell(2,10,0))
143143
import Language.Haskell.TH.Syntax (mkNameG_tc)
144144
#endif
@@ -1257,11 +1257,7 @@ deriveJSONClass consFuns jc opts name = do
12571257
case info of
12581258
DatatypeInfo { datatypeContext = ctxt
12591259
, datatypeName = parentName
1260-
#if MIN_VERSION_th_abstraction(0,3,0)
12611260
, datatypeInstTypes = instTys
1262-
#else
1263-
, datatypeVars = instTys
1264-
#endif
12651261
, datatypeVariant = variant
12661262
, datatypeCons = cons
12671263
} -> do
@@ -1293,11 +1289,7 @@ mkFunCommon consFun jc opts name = do
12931289
case info of
12941290
DatatypeInfo { datatypeContext = ctxt
12951291
, datatypeName = parentName
1296-
#if MIN_VERSION_th_abstraction(0,3,0)
12971292
, datatypeInstTypes = instTys
1298-
#else
1299-
, datatypeVars = instTys
1300-
#endif
13011293
, datatypeVariant = variant
13021294
, datatypeCons = cons
13031295
} -> do
@@ -1456,9 +1448,7 @@ buildTypeInstance tyConName jc dataCxt varTysOrig variant = do
14561448
Newtype -> False
14571449
DataInstance -> True
14581450
NewtypeInstance -> True
1459-
#if MIN_VERSION_th_abstraction(0,5,0)
1460-
Datatype.TypeData -> False
1461-
#endif
1451+
Language.Haskell.TH.Datatype.TypeData -> False
14621452

14631453
remainingTysOrigSubst' :: [Type]
14641454
-- See Note [Kind signatures in derived instances] for an explanation

src/Data/Aeson/Types/FromJSON.hs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,7 @@ import qualified Data.Aeson.KeyMap as KM
130130
import qualified Data.Attoparsec.ByteString.Char8 as A (endOfInput, parseOnly, scientific)
131131
import qualified Data.ByteString.Lazy as L
132132
import qualified Data.DList as DList
133-
#if MIN_VERSION_dlist(1,0,0)
134133
import qualified Data.DList.DNonEmpty as DNE
135-
#endif
136134
import qualified Data.Fix as F
137135
import qualified Data.HashMap.Strict as H
138136
import qualified Data.HashSet as HashSet
@@ -1783,7 +1781,6 @@ instance FromJSON1 DList.DList where
17831781
instance (FromJSON a) => FromJSON (DList.DList a) where
17841782
parseJSON = parseJSON1
17851783

1786-
#if MIN_VERSION_dlist(1,0,0)
17871784
-- | @since 1.5.3.0
17881785
instance FromJSON1 DNE.DNonEmpty where
17891786
liftParseJSON p _ = withArray "DNonEmpty" $
@@ -1795,7 +1792,6 @@ instance FromJSON1 DNE.DNonEmpty where
17951792
-- | @since 1.5.3.0
17961793
instance (FromJSON a) => FromJSON (DNE.DNonEmpty a) where
17971794
parseJSON = parseJSON1
1798-
#endif
17991795

18001796
-------------------------------------------------------------------------------
18011797
-- OneTuple

src/Data/Aeson/Types/ToJSON.hs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,7 @@ import qualified Data.Aeson.Encoding as E
112112
import qualified Data.Aeson.Encoding.Internal as E (InArray, comma, econcat, retagEncoding, key)
113113
import qualified Data.ByteString.Lazy as L
114114
import qualified Data.DList as DList
115-
#if MIN_VERSION_dlist(1,0,0)
116115
import qualified Data.DList.DNonEmpty as DNE
117-
#endif
118116
import qualified Data.Fix as F
119117
import qualified Data.HashMap.Strict as H
120118
import qualified Data.HashSet as HashSet
@@ -1553,7 +1551,6 @@ instance (ToJSON a) => ToJSON (DList.DList a) where
15531551
toJSON = toJSON1
15541552
toEncoding = toEncoding1
15551553

1556-
#if MIN_VERSION_dlist(1,0,0)
15571554
-- | @since 1.5.3.0
15581555
instance ToJSON1 DNE.DNonEmpty where
15591556
liftToJSON t _ = listValue t . DNE.toList
@@ -1563,7 +1560,6 @@ instance ToJSON1 DNE.DNonEmpty where
15631560
instance (ToJSON a) => ToJSON (DNE.DNonEmpty a) where
15641561
toJSON = toJSON1
15651562
toEncoding = toEncoding1
1566-
#endif
15671563

15681564
-------------------------------------------------------------------------------
15691565
-- OneTuple

0 commit comments

Comments
 (0)