sayable 1.2.0.0 → 1.2.1.0
raw patch · 3 files changed
+11/−1 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Text.Sayable: instance Text.Sayable.Sayable tag GHC.Types.Double
+ Text.Sayable: instance Text.Sayable.Sayable tag GHC.Types.Float
Files
- CHANGELOG.md +4/−0
- Text/Sayable.hs +6/−0
- sayable.cabal +1/−1
CHANGELOG.md view
@@ -1,5 +1,9 @@ # Revision history for sayable +## 1.2.1.0 -- 2023-10-18++* Added default `Sayable` instances for `Float` and `Double`.+ ## 1.2.0.0 -- 2023-10-01 * Changed `&+*` and `&!+*` to `&:*` and `&!:*` to avoid confusion with normal `+`
Text/Sayable.hs view
@@ -425,6 +425,8 @@ instance Sayable tag W.Word32 instance Sayable tag W.Word64 instance Sayable tag Natural+instance Sayable tag Float+instance Sayable tag Double instance Sayable tag TL.Text instance Sayable tag BS.ByteString where sayable = sayable . TE.decodeUtf8 instance Sayable tag BSL.ByteString where sayable = sayable . TEL.decodeUtf8@@ -796,6 +798,10 @@ -- This function is often used with a type application: -- -- > putStrLn $ sez @"info" $ "There are" &- length lst &- "list elements."+--+-- Note that this will use the 'show' representation provided by 'Prettyprinter';+-- notably this will usually assume a width of 80 characters and perform wrapping+-- accordingly. sez :: forall saytag a . Sayable saytag a => a -> String sez = show . saying . sayable @saytag
sayable.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.4 name: sayable-version: 1.2.0.0+version: 1.2.1.0 synopsis: Data structures, classes and operators for constructing context-adjusted pretty output description: .