Re: [Haskell-cafe] GUI-Woes

2006-03-13 Thread Dmitry V'yal
Christophe Poucet wrote: > I have to concur with Duncan. > > I started using Gtk2Hs for a small project and literally within a couple > hours I had a good understanding upon which to build a nice gui as well as > the gui itself. I haven't tried out wxhaskell, but trying gtk2hs and it's > cairo bi

Re: [Haskell-cafe] Re: request for code review

2006-03-13 Thread Tomasz Zielonka
On Mon, Mar 13, 2006 at 06:48:51PM -0800, Shannon -jj Behrens wrote: > > consolidateOutput = output >>> reverse >>> concat > > > > and so on. > > Are you saying that >>> can be used as a reversed version of $? For the (->) instance of Arrow, (>>>) is simply reversed function composition, (>>>) =

Re: [Haskell-cafe] Re: request for code review

2006-03-13 Thread Shannon -jj Behrens
On 3/12/06, Lennart Augustsson <[EMAIL PROTECTED]> wrote: > Shannon -jj Behrens wrote: > > lexString ('*':cs) = (classifyString "*", cs) > > lexString (c:cs) = (classifyString [c], cs) > > The first line isn't needed, it does the same as the second line. Good eye! You are correct. Thanks, -jj __

[Haskell-cafe] Re: request for code review

2006-03-13 Thread Shannon -jj Behrens
On 3/12/06, Einar Karttunen wrote: > On 12.03 01:47, Shannon -jj Behrens wrote: > > monad. Perhaps controversially, I've continued to use |> in a bunch > > of places that the monad didn't get rid of because I think it's more > > readable, but I'm still open for argument on this topic. Using the

Re: [Haskell-cafe] Re: [Haskell] Trying to get a Composite design pattern to work

2006-03-13 Thread Neil Mitchell
> How's this? What about ++, in Haskell thats just an ordinary function, yet you are using the library one in this case. The other thing is that the first definition of my_concat_map is entirely redundant, the second one handles both cases anyway. Also, for completeness, you might be interested

[Haskell-cafe] Re: [Haskell] Trying to get a Composite design pattern to work

2006-03-13 Thread Asfand Yar Qazi
On 3/13/06, Jared Updike <[EMAIL PROTECTED]> wrote: > > If you want a place to start, I would challenge you to expand the > concatMap definition above with the definitions of concat and map, and > then plug in the definition of foldr and see if you can make your own > concatMap function. Maybe that

[Haskell-cafe] Re: [Haskell] Trying to get a Composite design pattern to work

2006-03-13 Thread Jared Updike
(Moved to haskell-cafe) > Actually, I'm trying to avoid library functions, so I can learn the > language and the functional way of thinking. How would one implement > the concatMap function? The Haskell 98 report gives possible implementations of standard functions: http://haskell.org/onliner

Re: [Haskell-cafe] More STUArray questions

2006-03-13 Thread Roberto Zunino
Martin Percossi wrote: matrix.hs:138:27: Couldn't match the rigid variable `.' against `ST' `.' is bound by the type signature for `runSTMatrix' Expected type: ST s Inferred type: . (forall s1) Something seems wrong here. Above '.' was parsed as an infix type variable. As

Re: [Haskell-cafe] GUI-Woes

2006-03-13 Thread Christophe Poucet
I have to concur with Duncan.I started using Gtk2Hs for a small project and literally within a couple hours I had a good understanding upon which to build a nice gui as well as the gui itself.  I haven't tried out wxhaskell, but trying gtk2hs and it's cairo bindings, I fell in love with the simplic

Re: [Haskell-cafe] Tree with collections

2006-03-13 Thread Henning Thielemann
On Sat, 11 Mar 2006, Roberto Zunino wrote: This avoids duplicating code between Show/ShowColl . instance ShowColl coll => Show (CollTree coll) where show (CollNode n) = "CollNode " ++ showColl n class ShowColl coll where showColl :: coll (CollTree coll) -> String instance ShowColl []

Re: [Haskell-cafe] GUI-Woes

2006-03-13 Thread Duncan Coutts
On Mon, 2006-03-13 at 09:58 +0100, Daniel Fischer wrote: > Hello All, > > how would I get myself a working (and easy to use) GUI-library? There are two main GUI libraries at the moment: Gtk2Hs and wxHaskell. http://haskell.org/gtk2hs/ http://wxhaskell.sourceforge.net/ Both will work with curren

[Haskell-cafe] GUI-Woes

2006-03-13 Thread Daniel Fischer
Hello All, how would I get myself a working (and easy to use) GUI-library? Fudgets looks good, but I couldn't get it to build. I downloaded the snapshot from 2005, how to compile says make ghc-all; make ghc-install, but it doesn't work. First, in several scripts/makefiles, the ghc version 4.06 wa