From 5c97dd0e1094c7f2e405f30a14133000be310cd5 Mon Sep 17 00:00:00 2001 From: Adrian Cochrane Date: Tue, 21 Dec 2021 17:02:14 +1300 Subject: [PATCH] Fix build failure against new enough versions of 'text'. --- src/Data/CSS/Preprocessor/PsuedoClasses.hs | 2 +- stylist.cabal | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Data/CSS/Preprocessor/PsuedoClasses.hs b/src/Data/CSS/Preprocessor/PsuedoClasses.hs index 8ac7433..2ac3d5c 100644 --- a/src/Data/CSS/Preprocessor/PsuedoClasses.hs +++ b/src/Data/CSS/Preprocessor/PsuedoClasses.hs @@ -8,7 +8,7 @@ import Data.CSS.Syntax.StyleSheet import Data.CSS.Syntax.Selector import Data.CSS.Syntax.Tokens -import Data.Text as Txt +import Data.Text as Txt hiding (elem) import Data.Maybe (fromMaybe, listToMaybe) import Data.HashMap.Lazy as HM import Data.Function ((&)) diff --git a/stylist.cabal b/stylist.cabal index f465bf9..e42f3e4 100644 --- a/stylist.cabal +++ b/stylist.cabal @@ -10,7 +10,7 @@ name: stylist -- PVP summary: +-+------- breaking API changes -- | | +----- non-breaking API additions -- | | | +--- code changes with no API change -version: 2.4.0.0 +version: 2.4.0.1 -- A short (one-line) description of the package. synopsis: Apply CSS styles to a document tree. @@ -89,6 +89,7 @@ test-suite test-stylist other-modules: Data.CSS.Syntax.StyleSheet, Data.CSS.Syntax.Selector, Data.CSS.Style build-depends: base >=4.9 && <5, css-syntax >=0.1 && <0.2, text, unordered-containers >= 0.2 && <0.3, hashable, - network-uri >= 2.6 && <2.7, async >= 2.1 && <2.3, hspec, QuickCheck, + network-uri >= 2.6 && <2.7, async >= 2.1 && <2.3, + regex-tdfa >= 1.3, hspec, QuickCheck, scientific >= 0.3 && <1.0, regex-tdfa >= 1.3 ghc-options: -Wall -- 2.30.2