Bump version, update changelog

This commit is contained in:
Jonathan Daugherty 2022-02-27 15:23:39 -08:00
parent 9891504cfb
commit b3504fbcb0
2 changed files with 30 additions and 1 deletions

View File

@ -1,4 +1,33 @@
5.34
----
API changes:
* Added an `NFData` instance for `Event` (thanks Mario Lang)
* Removed `Monoid` and `Semigroup` instances for `Attr` and
`MaybeDefault`. This change removed the instances because they were
misbehaved; merging `Attr` and `MaybeDefault` values with these
instances resulted in field value losses. For example, before this
change,
```
(defAttr `withForeColor` blue) <> (defAttr `withBackColor` green)
```
would result in just
```
(defAttr `withBackColor` green)
```
because the instances were designed to favor the right-hand
arguments' fields even if they had not been explicitly set
(a consequence of the `MaybeDefault` `Semigroup` instance).
While that behavior was sensible specifically in the context of
`Graphics.Vty.Inline`, it wasn't a useful user-facing API and it made
for surprising instance behavior. Since there is actually no good way
to handle this in a `Semigroup` instance for `Attr` -- some choices
have to be made about how to merge two attributes' foreground colors,
and that won't be much better than what we had -- the instance was
just removed.
5.33
----

View File

@ -1,5 +1,5 @@
name: vty
version: 5.33
version: 5.34
license: BSD3
license-file: LICENSE
author: AUTHORS