[Haskell] Re: Compilation of big, static tables

2006-02-24 Thread Ben Rudiak-Gould

John Meacham wrote:

On Thu, Feb 23, 2006 at 10:40:31AM +, Malcolm Wallace wrote:

What I would really like is a syntax to statically construct an array,
without having to compute it from a list.


This is exactly what my ForeignData proposal on the haskell-prime wiki
is meant to address  [...]
though, I only have it specified for creating pointers to data, it
wouldn't be much trickier to make it work for haskell unboxed arrays
too (though, you can just make a StorableArray out of them easily as
stands)


What about boxed arrays? A static Array of thunks makes as much sense to me 
as a static UArray of CInts. This doesn't really feel like an FFI feature. 
(Not that foreign data wouldn't be useful too.)


-- Ben

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


[Haskell] how to write an interactive program ? gui library to use ?

2006-02-24 Thread minh thu
Hi all,
 
1/
I'd like to know how can I implement an interactive program (an editor) in haskell where some "things" have to be updated.
The "things" can be text in a word processor, or a pixel array in a 2d graphics editor, and so on.
Have I to pass the state (the "things") explicitely in the arguments of the main loop (a recursive function) ?
Sorry if it's stupid...
 
2/
Another one concerning gui library: what's the best choice ? I need it to work both on linux and windows. I also need it can handle an OpenGL context.
 
thanks a lot,
minh thu
___
Haskell mailing list
Haskell@haskell.org
http://www.haskell.org/mailman/listinfo/haskell