This is the hackaged version of an earlier release of Barrie. This release is not backward compatible (but it took me about five minutes to update everything).<br><br>From the package description:<br><pre> Implementation of an idea for supporting certain kinds of GUI:<br>
that is state based, user-driven ones. The GUI is intended to<br> manipulate a state, and it is responsive rather than active.<br> Configuration is an example.<br></pre>The idea is that you already have a state-manipulation bit of code lying around, and you want to slap a GUI on the front. Barrie does not help you write beautiful code, but it sure puts something functional on the screen quickly. It's currently being used for an interface to a Bridge application, and for something else which is too nerdy to describe here, but which follows the general pattern of the intended purpose.<br>
<br>To install:<br>$ cabal update<br>$ cabal install barrie<br><br>Barrie now requires gtk2hs 0.10.0.<br><br><a href="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/barrie" target="_blank"></a>Changes:<br><br>
- Dropped the generic value type.<br><br>It was<br> 1. not type safe<br> 2. not interesting<br> 3. not exactly everything I ever wanted from a type-agnostic storage mechanism.<br><br>Instead, Barrie operates internally with Strings. This should be type safe because of the way they are wrapped, and it seems like a good place to park the problem until I work out what I really want.<br>
<br>- Gadget constructors are now much more regular. For example, to create a gadget that displays things, you have a choice of displayG, which displays any instance of show, displayG', which lets you provide your own conversions to and from String, and textDisplayG, which displays plain old Strings. Similarly, the chooserG gadget is created by chooserG, chooserG' and textChooserG, but there's also enumChooserG, which automatically creates a chooser for the elements of any Enum that is an instance of Show. Choosers can currently be rendered by a list or a combo box.<br>
<br>- Quite a bit of documentation, which, because of the regularity imposed by Haddock, is making me question the decision to use Literate Haskell. Hey ho, live and learn.<br><br>- Text boxes now apply their changes after they lose focus.<br>
<br>The darcs repository with demos can still be found at <a href="http://thewhitelion.org/darcs/barrie">http://thewhitelion.org/darcs/barrie</a>, and I think I've sorted out the recent problems there.<br><br>cheers,<br>
Fraser.<br clear="all"><br>-- <br><a href="http://thewhitelion.org/mysister" target="_blank">http://thewhitelion.org/mysister</a><br>