packages feed

safe-coloured-text-layout 0.2.0.1 → 0.2.0.2

raw patch · 3 files changed

+12/−3 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,5 +1,12 @@ # Changelog for safe-coloured-text-layout +## [0.2.0.2] - 2026-07-24++### Changed++* Build against `safe-coloured-text >= 0.6`, which separates `ChunkStyle`+  from `Chunk`.+ ## [0.2.0.1] - 2024-08-03  ### Changed
safe-coloured-text-layout.cabal view
@@ -1,11 +1,11 @@ cabal-version: 1.12 --- This file has been generated from package.yaml by hpack version 0.36.0.+-- This file has been generated from package.yaml by hpack version 0.38.3. -- -- see: https://github.com/sol/hpack  name:           safe-coloured-text-layout-version:        0.2.0.1+version:        0.2.0.2 synopsis:       Safely layout output coloured text category:       User Interfaces homepage:       https://github.com/NorfairKing/safe-coloured-text#readme
src/Text/Colour/Layout.hs view
@@ -125,7 +125,9 @@ paddingChunk l c = chunk $ T.pack $ replicate l c  possiblyAddBackground :: Maybe Colour -> Chunk -> Chunk-possiblyAddBackground mb c = c {chunkBackground = chunkBackground c <|> mb}+possiblyAddBackground mb c =+  let s = chunkStyle c+   in c {chunkStyle = s {chunkStyleBackground = chunkStyleBackground s <|> mb}}  backgroundForRow :: Int -> Maybe TableBackground -> Maybe Colour backgroundForRow _ Nothing = Nothing