From 98090784e9ed97cf761cf69ad3f32b88dbdd30a2 Mon Sep 17 00:00:00 2001 From: Frank Staals Date: Mon, 27 May 2024 00:13:31 +0200 Subject: [PATCH] use foldable1-classes-compat --- src/Data/Vector/Circular.hs | 4 ++-- vector-circular.cabal | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Data/Vector/Circular.hs b/src/Data/Vector/Circular.hs index 2847f72..1f1351b 100644 --- a/src/Data/Vector/Circular.hs +++ b/src/Data/Vector/Circular.hs @@ -192,7 +192,7 @@ import Control.DeepSeq #endif /* MIN_VERSION_base(4,13,0) */ import Data.List.NonEmpty (NonEmpty((:|))) import Data.Primitive.MutVar ( newMutVar, readMutVar, writeMutVar ) -import Data.Semigroup.Foldable.Class (Foldable1) +import Data.Foldable1 (Foldable1) import Data.Monoid (All(..)) import Data.Vector (Vector) import Data.Vector.NonEmpty (NonEmptyVector) @@ -209,7 +209,7 @@ import Prelude hiding (head, length, last, map, concat, takeWhile ,enumFromThenTo, (++), filter, foldl') import Language.Haskell.TH.Syntax import qualified Data.Foldable as Foldable -import qualified Data.Semigroup.Foldable.Class as Foldable1 +import qualified Data.Foldable1 as Foldable1 import qualified Data.Vector as Vector import qualified Data.Vector.Mutable as MVector import qualified Data.Vector.NonEmpty as NonEmpty diff --git a/vector-circular.cabal b/vector-circular.cabal index b9a2b54..9c3fcfd 100644 --- a/vector-circular.cabal +++ b/vector-circular.cabal @@ -39,6 +39,7 @@ library , template-haskell >= 2.12 && < 2.23 , vector >= 0.12 && < 0.14 , deepseq >= 1.4 && < 1.6 + , foldable1-classes-compat >= 0.1 && < 0.2 ghc-options: -Wall -O2