@@ -79,7 +79,7 @@ module Data.Aeson.Types.Instances
7979import Data.Aeson.Types.Instances.Tuple (tuple, (>*<))
8080
8181import 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)
8383import Data.Aeson.Functions (hashMapKey, mapHashKeyVal, mapKey, mapKeyVal)
8484import Data.Aeson.Types.Class
8585import Data.Aeson.Types.Internal
@@ -590,7 +590,7 @@ instance ToJSON1 NonEmpty where
590590 liftToJSON to = liftToJSON to . toList
591591 {-# INLINE liftToJSON #-}
592592
593− liftToEncoding = foldable'
593+ liftToEncoding = foldable
594594 {-# INLINE liftToEncoding #-}
595595
596596instance (ToJSON a) => ToJSON (NonEmpty a) where
@@ -615,7 +615,7 @@ instance ToJSON1 [] where
615615 liftToJSON to = Array . V.fromList . map to
616616 {-# INLINE liftToJSON #-}
617617
618− liftToEncoding = list'
618+ liftToEncoding = list
619619 {-# INLINE liftToEncoding #-}
620620
621621instance (ToJSON a) => ToJSON [a] where
@@ -638,7 +638,7 @@ instance ToJSON1 Seq.Seq where
638638 liftToJSON to = liftToJSON to . toList
639639 {-# INLINE liftToJSON #-}
640640
641− liftToEncoding = foldable'
641+ liftToEncoding = foldable
642642 {-# INLINE liftToEncoding #-}
643643
644644instance (ToJSON a) => ToJSON (Seq.Seq a) where
@@ -751,7 +751,7 @@ instance (ToJSON a) => ToJSON (HashSet.HashSet a) where
751751 toJSON = toJSON . HashSet.toList
752752 {-# INLINE toJSON #-}
753753
754− toEncoding = foldable
754+ toEncoding = foldable toEncoding
755755 {-# INLINE toEncoding #-}
756756
757757instance (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
826826
827827 toEncoding = case toJSONKey of
828828 ToJSONKeyText (_,f) -> encodeMap f M.minViewWithKey M.foldrWithKey
829− ToJSONKeyValue (_,f) -> list' (pairEncoding f) . M.toList
829+ ToJSONKeyValue (_,f) -> list (pairEncoding f) . M.toList
830830 where pairEncoding :: (k -> Encoding) -> (k, v) -> Encoding
831831 pairEncoding f (a, b) = tuple $ fromEncoding (f a) >*< builder b
832832 {-# INLINE toEncoding #-}
@@ -852,7 +852,7 @@ instance (ToJSON v, ToJSONKey k) => ToJSON (H.HashMap k v) where
852852
853853 toEncoding = case toJSONKey of
854854 ToJSONKeyText (_,f) -> encodeWithKey f H.foldrWithKey
855− ToJSONKeyValue (_,f) -> list' (pairEncoding f) . H.toList
855+ ToJSONKeyValue (_,f) -> list (pairEncoding f) . H.toList
856856 where pairEncoding :: (k -> Encoding) -> (k, v) -> Encoding
857857 pairEncoding f (a, b) = tuple $ fromEncoding (f a) >*< builder b
858858 {-# INLINE toEncoding #-}