From 2073d94dc86ea53c5f79a85c01d91425c22801c0 Mon Sep 17 00:00:00 2001 From: Rebecca Turner Date: Mon, 28 Oct 2024 15:37:21 -0700 Subject: [PATCH] data-default-class -> data-default data-default 0.8 deprecates data-default-class by moving the `Default` class from `Data.Default.Class` to `Data.Default`. See: https://github.com/commercialhaskell/stackage/issues/7545 --- xml-conduit/src/Text/XML/Stream/Parse.hs | 2 +- xml-conduit/src/Text/XML/Stream/Render.hs | 2 +- xml-conduit/xml-conduit.cabal | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xml-conduit/src/Text/XML/Stream/Parse.hs b/xml-conduit/src/Text/XML/Stream/Parse.hs index 31be3377..e7bcb97c 100644 --- a/xml-conduit/src/Text/XML/Stream/Parse.hs +++ b/xml-conduit/src/Text/XML/Stream/Parse.hs @@ -161,7 +161,7 @@ import qualified Data.ByteString.Builder as Builder import Data.Char (isSpace) import Data.Conduit.Attoparsec (PositionRange, conduitParser) import qualified Data.Conduit.Text as CT -import Data.Default.Class (Default (..)) +import Data.Default (Default (..)) import Data.List (foldl', intercalate) import qualified Data.Map as Map import Data.Maybe (fromMaybe, isNothing, mapMaybe) diff --git a/xml-conduit/src/Text/XML/Stream/Render.hs b/xml-conduit/src/Text/XML/Stream/Render.hs index 31a00f92..4d699c80 100644 --- a/xml-conduit/src/Text/XML/Stream/Render.hs +++ b/xml-conduit/src/Text/XML/Stream/Render.hs @@ -35,7 +35,7 @@ import Control.Monad.Trans.Resource (MonadThrow) import Data.ByteString (ByteString) import Data.ByteString.Builder (Builder) import Conduit -import Data.Default.Class (Default (def)) +import Data.Default (Default (def)) import Data.List (foldl') import Data.Map (Map) import qualified Data.Map as Map diff --git a/xml-conduit/xml-conduit.cabal b/xml-conduit/xml-conduit.cabal index f3fe88b8..024b716d 100644 --- a/xml-conduit/xml-conduit.cabal +++ b/xml-conduit/xml-conduit.cabal @@ -30,7 +30,7 @@ library , xml-types >= 0.3.4 && < 0.4 , attoparsec >= 0.10 , transformers >= 0.2 && < 0.7 - , data-default-class + , data-default , blaze-markup >= 0.5 , blaze-html >= 0.5 , deepseq >= 1.1.0.0