@@ -132,7 +132,7 @@ import qualified Data.Primitive.Array as PM
132import qualified Data.Primitive.SmallArray as PM
132import qualified Data.Primitive.SmallArray as PM
133import qualified Data.Primitive.Types as PM
133import qualified Data.Primitive.Types as PM
135−#if (MIN_VERSION_primitive(0,6,4))
135+#if MIN_VERSION_primitive(0,6,4)
136import qualified Data.Primitive.UnliftedArray as PM
136import qualified Data.Primitive.UnliftedArray as PM
137import qualified Data.Primitive.PrimArray as PM
137import qualified Data.Primitive.PrimArray as PM
@@ -1918,25 +1918,25 @@ formatMillis = take 3 . formatTime defaultTimeLocale "%q"
1918-- primitive
1918-- primitive
1919-------------------------------------------------------------------------------
1919-------------------------------------------------------------------------------
1921−#if (MIN_VERSION_base(0,4,7))
1921+#if MIN_VERSION_base(4,7,0)
1922instance ToJSON a => ToJSON (PM.Array a) where
1922instance ToJSON a => ToJSON (PM.Array a) where
1923 -- note: we could do better than this if vector exposed the data
1923 -- note: we could do better than this if vector exposed the data
1924 -- constructor in Data.Vector.
1924 -- constructor in Data.Vector.
1925− toJSON = toJSON . Exts.toList
1925+ toJSON = toJSON . Exts.toList
1926− toEncoding = toEncoding . Exts.toList
1926+ toEncoding = toEncoding . Exts.toList
1928instance ToJSON a => ToJSON (PM.SmallArray a) where
1928instance ToJSON a => ToJSON (PM.SmallArray a) where
1929− toJSON = toJSON . Exts.toList
1929+ toJSON = toJSON . Exts.toList
1930− toEncoding = toEncoding . Exts.toList
1930+ toEncoding = toEncoding . Exts.toList
1932#if (MIN_VERSION_primitive(0,6,4))
1932#if (MIN_VERSION_primitive(0,6,4))
1933instance (PM.Prim a,ToJSON a) => ToJSON (PM.PrimArray a) where
1933instance (PM.Prim a,ToJSON a) => ToJSON (PM.PrimArray a) where
1934− toJSON = toJSON . Exts.toList
1934+ toJSON = toJSON . Exts.toList
1935− toEncoding = toEncoding . Exts.toList
1935+ toEncoding = toEncoding . Exts.toList
1937instance (PM.PrimUnlifted a,ToJSON a) => ToJSON (PM.UnliftedArray a) where
1937instance (PM.PrimUnlifted a,ToJSON a) => ToJSON (PM.UnliftedArray a) where
1938− toJSON = toJSON . Exts.toList
1938+ toJSON = toJSON . Exts.toList
1939− toEncoding = toEncoding . Exts.toList
1939+ toEncoding = toEncoding . Exts.toList