[Haskell-cafe] ANNOUNCE: vty-ui 0.3
Jonathan Daugherty
drcygnus at gmail.com
Fri Feb 19 01:23:34 EST 2010
I'm happy to announce the release of vty-ui 0.3.
Get it from Hackage:
http://hackage.haskell.org/package/vty-ui
Or get the source with darcs:
http://repos.codevine.org/vty-ui
Project homepage:
http://codevine.org/vty-ui/
This version of vty-ui features a richer rendering engine, generalized text
transformations, and a more functional style. If you've written any
applications
to use vty-ui, your type signatures and usage of a few of the built-in widget
types will need to change but the API is largely the same. In
particular, the largest
change was a refactoring inspired by Luke Palmer's blog post, "Haskell
Antipattern:
Existential Typeclass," which targeted vty-ui (among other libraries)
in its treatment
of the topic:
http://lukepalmer.wordpress.com/2010/01/24/haskell-antipattern-existential-typeclass/
Here's a summary of changes:
General
* Replace Widget type class with a concrete Widget type
* Move text widget into Graphics.Vty.Widgets.Text
* Add support for generalized text "formatters"
* Replace WrappedText widget type with a text-wrapping formatter
* Provide a regex-based text-highlighting formatter (see the demo
for an example)
* Refactor the rendering engine to provide "address" information so
you can get coordinates and size for rendered widgets
* Add a few QuickCheck tests (and related fixes)
Enjoy!
--
Jonathan Daugherty
More information about the Haskell-Cafe
mailing list