[Haskell] ANN: Barrie 0.3.1

2009-02-17 Thread Fraser Wilson
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).

>From the package description:

Implementation of an idea for supporting certain kinds of GUI:
that is state based, user-driven ones.  The GUI is intended to
manipulate a state, and it is responsive rather than active.
Configuration is an example.

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.

To install:
$ cabal update
$ cabal install barrie

Barrie now requires gtk2hs 0.10.0.

Changes:

- Dropped the generic value type.

It was
  1. not type safe
  2. not interesting
  3. not exactly everything I ever wanted from a type-agnostic storage
mechanism.

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.

- 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.

- 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.

- Text boxes now apply their changes after they lose focus.

The darcs repository with demos can still be found at
http://thewhitelion.org/darcs/barrie, and I think I've sorted out the recent
problems there.

cheers,
Fraser.

-- 
http://thewhitelion.org/mysister
___
Haskell mailing list
Haskell@haskell.org
http://www.haskell.org/mailman/listinfo/haskell


Re: [Haskell] Improvements to GHC

2005-11-17 Thread Fraser Wilson
On 11/17/05, Duncan Coutts <[EMAIL PROTECTED]
> wrote:
That gives you a getter function but you would then need an extra setterfunction.
Of course, but that offended me less -- I spent much more time getting things than setting them.  YMMV.

Fraser.



___
Haskell mailing list
Haskell@haskell.org
http://www.haskell.org/mailman/listinfo/haskell


Re: [Haskell] Improvements to GHC

2005-11-17 Thread Fraser Wilson
On 11/17/05, Joel Reymont <[EMAIL PROTECTED]> wrote:
I vote for a separate namespace for record access functions.
I agree, but ...
My users now have to deal with tiGameID, blahBlahGameID, etc. andthey are all the same.

To solve this problem I just made them all instances of a class with a gameId function.  Still, not ideal.

Fraser.
___
Haskell mailing list
Haskell@haskell.org
http://www.haskell.org/mailman/listinfo/haskell


Re: [Haskell] Re: Haskell users survey--please respond!

2005-11-09 Thread Fraser Wilson
On 11/9/05, Aaron Denney <[EMAIL PROTECTED]> wrote:
On 2005-11-09, John Hughes <[EMAIL PROTECTED]> wrote:> The survey is at this URL:> http://www.cs.chalmers.se/~rjmh/Wash/Survey/Survey.cgi
I hit "Submit response and view previous responses" and it says"Unspecified action" and a "Try again..." hyperlink.
The only thing I can think of on my end is that I haven't checked any ofthe tools or libraries, as I haven't used any of them

Me too, though I checked three of the tools ... Firefox 1.0.7 ... my country isn't on the list though.

Fraser.


___
Haskell mailing list
Haskell@haskell.org
http://www.haskell.org/mailman/listinfo/haskell