named-text 1.2.3.0 → 1.2.4.0
raw patch · 3 files changed
+16/−4 lines, 3 filesdep +template-haskelldep ~parameterized-utilsPVP ok
version bump matches the API change (PVP)
Dependencies added: template-haskell
Dependency ranges changed: parameterized-utils
API changes (from Hackage documentation)
Files
- CHANGELOG.md +7/−0
- Data/Name/Internal.hs +4/−1
- named-text.cabal +5/−3
CHANGELOG.md view
@@ -1,5 +1,12 @@ # Revision history for named-text +## 1.2.4.0 -- 2026-07.04++* Allow building with GHC 9.14.++* Added Language.Haskell.TH.Syntax.Lift instance for Named, allowing it to be+ used in Template Haskell splices.+ ## 1.2.3.0 -- 2026-03-10 * Added CaseInsensitivePreserve style, which functions similarly to
Data/Name/Internal.hs view
@@ -1,5 +1,6 @@ {-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DeriveLift #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE KindSignatures #-} @@ -10,14 +11,16 @@ import GHC.Generics ( Generic ) import GHC.TypeLits +import Language.Haskell.TH.Syntax ( Lift ) + -- | The 'Named' is a wrapper around any 'Data.Text' that identifies the type of -- 'Data.Text' via the @nameOf@ phantom symbol type, as well as a usage specified -- by the @style@ type parameter. Use of 'Named' should always be preferred to -- using a raw 'Data.Text' (or 'String'). newtype Named (style :: NameStyle) (nameOf :: Symbol) = Named { named :: Text }- deriving (Generic, NFData, Semigroup)+ deriving (Generic, NFData, Semigroup, Lift) -- | The NameStyle specifies how the name itself is styled.
named-text.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.4 name: named-text-version: 1.2.3.0+version: 1.2.4.0 synopsis: A parameterized named text type and associated functionality. description: .@@ -28,7 +28,8 @@ category: Data build-type: Simple extra-doc-files: CHANGELOG.md-tested-with: GHC == 9.12+tested-with: GHC == 9.14+ , GHC == 9.12 , GHC == 9.10 , GHC == 9.8 , GHC == 9.6@@ -72,6 +73,7 @@ , hashable , prettyprinter >= 1.7.0 && < 1.8 , sayable >= 1.0 && < 1.3+ , template-haskell , text exposed-modules: Data.Name other-modules: Data.Name.Internal@@ -89,7 +91,7 @@ build-depends: base , hspec , named-text- , parameterized-utils >= 2.1 && < 2.2+ , parameterized-utils >= 2.1 && < 2.4 , prettyprinter , sayable , tasty >= 1.4 && < 1.6