@@ -79,7 +79,7 @@ module Data.Aeson.Types.Instances
79import Data.Aeson.Types.Instances.Tuple (tuple, (>*<))
79import Data.Aeson.Types.Instances.Tuple (tuple, (>*<))
81import Control.Applicative (Const(..))
81import Control.Applicative (Const(..))
82−import Data.Aeson.Encode.Functions (brackets, builder, encode, foldable, foldable', list')
82+import Data.Aeson.Encode.Functions (brackets, builder, encode, foldable, list)
83import Data.Aeson.Functions (hashMapKey, mapHashKeyVal, mapKey, mapKeyVal)
83import Data.Aeson.Functions (hashMapKey, mapHashKeyVal, mapKey, mapKeyVal)
84import Data.Aeson.Types.Class
84import Data.Aeson.Types.Class
85import Data.Aeson.Types.Internal
85import Data.Aeson.Types.Internal
@@ -590,7 +590,7 @@ instance ToJSON1 NonEmpty where
590 liftToJSON to = liftToJSON to . toList
590 liftToJSON to = liftToJSON to . toList
591 {-# INLINE liftToJSON #-}
591 {-# INLINE liftToJSON #-}
593− liftToEncoding = foldable'
593+ liftToEncoding = foldable
594 {-# INLINE liftToEncoding #-}
594 {-# INLINE liftToEncoding #-}
596instance (ToJSON a) => ToJSON (NonEmpty a) where
596instance (ToJSON a) => ToJSON (NonEmpty a) where
@@ -615,7 +615,7 @@ instance ToJSON1 [] where
615 liftToJSON to = Array . V.fromList . map to
615 liftToJSON to = Array . V.fromList . map to
616 {-# INLINE liftToJSON #-}
616 {-# INLINE liftToJSON #-}
618− liftToEncoding = list'
618+ liftToEncoding = list
619 {-# INLINE liftToEncoding #-}
619 {-# INLINE liftToEncoding #-}
621instance (ToJSON a) => ToJSON [a] where
621instance (ToJSON a) => ToJSON [a] where
@@ -638,7 +638,7 @@ instance ToJSON1 Seq.Seq where
638 liftToJSON to = liftToJSON to . toList
638 liftToJSON to = liftToJSON to . toList
639 {-# INLINE liftToJSON #-}
639 {-# INLINE liftToJSON #-}
641− liftToEncoding = foldable'
641+ liftToEncoding = foldable
642 {-# INLINE liftToEncoding #-}
642 {-# INLINE liftToEncoding #-}
644instance (ToJSON a) => ToJSON (Seq.Seq a) where
644instance (ToJSON a) => ToJSON (Seq.Seq a) where
@@ -751,7 +751,7 @@ instance (ToJSON a) => ToJSON (HashSet.HashSet a) where
751 toJSON = toJSON . HashSet.toList
751 toJSON = toJSON . HashSet.toList
752 {-# INLINE toJSON #-}
752 {-# INLINE toJSON #-}
754− toEncoding = foldable
754+ toEncoding = foldable toEncoding
755 {-# INLINE toEncoding #-}
755 {-# INLINE toEncoding #-}
757instance (Eq a, Hashable a, FromJSON a) => FromJSON (HashSet.HashSet a) where
757instance (Eq a, Hashable a, FromJSON a) => FromJSON (HashSet.HashSet a) where
@@ -826,7 +826,7 @@ instance (ToJSON v, ToJSONKey k) => ToJSON (M.Map k v) where
827 toEncoding = case toJSONKey of
827 toEncoding = case toJSONKey of
828 ToJSONKeyText (_,f) -> encodeMap f M.minViewWithKey M.foldrWithKey
828 ToJSONKeyText (_,f) -> encodeMap f M.minViewWithKey M.foldrWithKey
829− ToJSONKeyValue (_,f) -> list' (pairEncoding f) . M.toList
829+ ToJSONKeyValue (_,f) -> list (pairEncoding f) . M.toList
830 where pairEncoding :: (k -> Encoding) -> (k, v) -> Encoding
830 where pairEncoding :: (k -> Encoding) -> (k, v) -> Encoding
831 pairEncoding f (a, b) = tuple $ fromEncoding (f a) >*< builder b
831 pairEncoding f (a, b) = tuple $ fromEncoding (f a) >*< builder b
832 {-# INLINE toEncoding #-}
832 {-# INLINE toEncoding #-}
@@ -852,7 +852,7 @@ instance (ToJSON v, ToJSONKey k) => ToJSON (H.HashMap k v) where
853 toEncoding = case toJSONKey of
853 toEncoding = case toJSONKey of
854 ToJSONKeyText (_,f) -> encodeWithKey f H.foldrWithKey
854 ToJSONKeyText (_,f) -> encodeWithKey f H.foldrWithKey
855− ToJSONKeyValue (_,f) -> list' (pairEncoding f) . H.toList
855+ ToJSONKeyValue (_,f) -> list (pairEncoding f) . H.toList
856 where pairEncoding :: (k -> Encoding) -> (k, v) -> Encoding
856 where pairEncoding :: (k -> Encoding) -> (k, v) -> Encoding
857 pairEncoding f (a, b) = tuple $ fromEncoding (f a) >*< builder b
857 pairEncoding f (a, b) = tuple $ fromEncoding (f a) >*< builder b
858 {-# INLINE toEncoding #-}
858 {-# INLINE toEncoding #-}