From a3f78f03cb591de7a874f32a677871cd9c95c354 Mon Sep 17 00:00:00 2001 From: Adrian Cochrane Date: Tue, 16 May 2023 11:37:46 +1200 Subject: [PATCH] Release Stylist-Traits 0.1.3 --- stylist-traits/src/Stylist.hs | 3 +++ stylist-traits/stylist-traits.cabal | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/stylist-traits/src/Stylist.hs b/stylist-traits/src/Stylist.hs index 203bc1a..cd26888 100644 --- a/stylist-traits/src/Stylist.hs +++ b/stylist-traits/src/Stylist.hs @@ -27,6 +27,9 @@ class PropertyParser a where inherit :: a -> a inherit = id + priority :: a -> [Text] + priority _ = [] + -- | Expand a shorthand property into longhand properties. shorthand :: a -> Text -> [Token] -> [(Text, [Token])] shorthand self key value | Just _ <- longhand self self key value = [(key, value)] diff --git a/stylist-traits/stylist-traits.cabal b/stylist-traits/stylist-traits.cabal index 7b03755..2326d57 100644 --- a/stylist-traits/stylist-traits.cabal +++ b/stylist-traits/stylist-traits.cabal @@ -10,7 +10,7 @@ name: stylist-traits -- PVP summary: +-+------- breaking API changes -- | | +----- non-breaking API additions -- | | | +--- code changes with no API change -version: 0.1.2.0 +version: 0.1.3.0 -- A short (one-line) description of the package. synopsis: Traits, datatypes, & parsers for Haskell Stylist -- 2.30.2