Re: GUI Library for Visualizing Data

2002-11-06 Thread Manuel M T Chakravarty
Peter Simons [EMAIL PROTECTED] wrote,

 I'm looking for a library that allows me to visualize data under X11
 screen, for instance as a pie chart or as a bar chart. I seem to
 recall that something like that was available for the GTK toolkit, but
 has this library been ported to Haskell? Or any other library?

I think, the GTK+ widget that you are referring to is
GtkPlot from the GTK+Extra set

  http://gtkextra.sourceforge.net/

To my knowledge, there is no Haskell binding for it yet.
However, it is possible to extend the existing GTK+ binding
for Haskell http://www.cse.unsw.edu.au/~chak/haskell/gtk/
with extra widgets (there already exist some such extension
in the ext/ directory of the package).  I am generally happy
to include such extensions into the main distribution and to
provide help with coding them.

Cheers,
Manuel

___
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe



Re: producing and consuming lists

2002-11-06 Thread Jorge Adriano

  But like I just showed, sometimes paring them may not be a natural
  approach though...

 Yeah, I understand what you mean.  In the examples you give, you could
 always try to make the appended stuff (the zs, etc) the same length by
 appending Nothings, but probalby not a general solution.

Yes maybe, I was hoping I could find a more elegant solution though.


 I wonder if, given you original function which returns ([Int],[Int]), you
 couldn't do something really ugly like using unsafeInterleaveIO on writing
 the first list, and then write the second list by hand.

 Just a thought.

If consuming is just writing stuff to files I think Trace (which uses 
unsafeInterleaveIO) would be just fine, but consuming might be more than 
that. In that case I'd have to fuse the functions that consume each of the 
streams, with the function that produces them. 

J.A.



___
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe