[Haskell-cafe] FunctionalJ - a library for Functional Programming in Java

2006-01-11 Thread Graham Klyne
A colleague alerted me to this, which I thought might be of interest here: http://www.theserverside.com/news/thread.tss?thread_id=38430 (I have already found that my Haskell experiences have influenced my Python programming; maybe there's also hope for my Java?) #g -- Graham Klyne For

Re: [Haskell-cafe] FunctionalJ - a library for Functional Programming in Java

2006-01-11 Thread Bjorn Bringert
Graham Klyne wrote: A colleague alerted me to this, which I thought might be of interest here: http://www.theserverside.com/news/thread.tss?thread_id=38430 (I have already found that my Haskell experiences have influenced my Python programming; maybe there's also hope for my Java?) I've

Re: [Haskell-cafe] Re: Space usage problems

2006-01-11 Thread Ian Lynagh
On Wed, Jan 11, 2006 at 10:36:47AM +, Simon Marlow wrote: My suggestion: don't use the lazy state monad if you can help it. But a strict state monad would force everything to be loaded into memory at once, right? What would you suggest I use instead? Or do I just have to tread carefully

[Haskell-cafe] Re: Space usage problems

2006-01-11 Thread Simon Marlow
Ian Lynagh wrote: On Wed, Jan 11, 2006 at 10:36:47AM +, Simon Marlow wrote: My suggestion: don't use the lazy state monad if you can help it. But a strict state monad would force everything to be loaded into memory at once, right? What would you suggest I use instead? I'm not sure -

[Haskell-cafe] Re: Shootout favoring imperative code

2006-01-11 Thread Einar Karttunen
On 09.01 11:32, Simon Marlow wrote: Sebastian Sylvan wrote: It would be neat if the PackedString library contained functions such as hGetLine etc. It does have a function for reading from a buffer, but it won't stop at a newline... But yeah, fast string manipulation is difficult when using

Re: [Haskell-cafe] I/O and utf8

2006-01-11 Thread Einar Karttunen
On 10.01 10:25, Bulat Ziganshin wrote: i have the question about this issue - i also want to provide autodetection mechanism, which relies on first bytes of text files to set proper encoding. what is the standard rules to encode utf8/utf16 encoding used for text in file in these first bytes?

Re: [Haskell-cafe] Re: Chameneos

2006-01-11 Thread Chris Kuklewicz
Aaron Denney wrote: On 2006-01-06, Chris Kuklewicz [EMAIL PROTECTED] wrote: One could make an MVar version which did not use a meeting thread, and I welcome someone to do that. I have no proof that the current solution is really the fastest architecture. I've done so -- on my machine it's

[Haskell-cafe] Help compiling School of Expression graphics library?

2006-01-11 Thread Rakesh Malik
I'm trying to build the GraphicsLib code in Linux, Fedora. I have the March '05 version of Hugs installed (and ghc, but that doesn't seem to be relevant to this). The first bit of puzzlement comes from the error messages I'm getting: ffihugs +G +LX_stub_ffi.c X.hs Warning: unknown toggle `G';

Re: [Haskell-cafe] Help compiling School of Expression graphics library?

2006-01-11 Thread Jared Updike
Someone else had this problem, I think. http://www.mail-archive.com/haskell-cafe@haskell.org/msg11358.html Jared. On 1/11/06, Rakesh Malik [EMAIL PROTECTED] wrote: I'm trying to build the GraphicsLib code in Linux, Fedora. I have the March '05 version of Hugs installed (and ghc, but that

Re: [Haskell-cafe] Help compiling School of Expression graphics library?

2006-01-11 Thread Ross Paterson
On Wed, Jan 11, 2006 at 11:25:42AM -0500, Rakesh Malik wrote: I'm trying to build the GraphicsLib code in Linux, Fedora. I have the March '05 version of Hugs installed (and ghc, but that doesn't seem to be relevant to this). The graphics library should be included with Hugs: the module is

Re: [Haskell-cafe] Help compiling School of Expression graphics library?

2006-01-11 Thread Rakesh Malik
Indeed it is! Thanks, both of you, for the quick responses. On 1/11/06, Ross Paterson [EMAIL PROTECTED] wrote: On Wed, Jan 11, 2006 at 11:25:42AM -0500, Rakesh Malik wrote: I'm trying to build the GraphicsLib code in Linux, Fedora. I have the March '05 version of Hugs installed (and ghc,

[Haskell-cafe] Re: Chameneos

2006-01-11 Thread Aaron Denney
On 2006-01-11, Chris Kuklewicz [EMAIL PROTECTED] wrote: Aaron Denney wrote: The old version with the meeting place thread has been disqualified (along with Erlang submissions). Is this reasoning explained and clarified anywhere, or did they just move both to the interesting alternatives? The

Re: [Haskell-cafe] Re: Chameneos

2006-01-11 Thread Isaac Gouy
--- Aaron Denney [EMAIL PROTECTED] wrote: On 2006-01-11, Chris Kuklewicz [EMAIL PROTECTED] wrote: Aaron Denney wrote: The old version with the meeting place thread has been disqualified (along with Erlang submissions). Is this reasoning explained and clarified anywhere, or did they

[Haskell-cafe] Re: Chameneos

2006-01-11 Thread Aaron Denney
On 2006-01-11, Isaac Gouy [EMAIL PROTECTED] wrote: --- Aaron Denney [EMAIL PROTECTED] wrote: On 2006-01-11, Chris Kuklewicz [EMAIL PROTECTED] wrote: Aaron Denney wrote: The old version with the meeting place thread has been disqualified (along with Erlang submissions). Is this

Re: [Haskell-cafe] Re: Chameneos

2006-01-11 Thread Isaac Gouy
--- Aaron Denney [EMAIL PROTECTED] wrote: The forums there seem to be useless because...? Because I can't find anything relevant (and I did look). I can't even tell where such an announcement would have been made. Ah! Useful for finding an announcement - maybe not. otoh the forums do

[Haskell-cafe] multiline strings in haskell?

2006-01-11 Thread Michael Vanier
Is there any support for multi-line string literals in Haskell? I've done a web search and come up empty. I'm thinking of using Haskell to generate web pages and having multi-line strings would be very useful. Mike ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] multiline strings in haskell?

2006-01-11 Thread Michael Vanier
Yes, just like that ;-) Thanks! Now if somebody has a string interpolation library, I'd be a pretty happy camper ;-) Mike mvanier: Is there any support for multi-line string literals in Haskell? I've done a web search and come up empty. I'm thinking of using Haskell to generate web

[Haskell-cafe] Re: Chameneos

2006-01-11 Thread Aaron Denney
On 2006-01-11, Isaac Gouy [EMAIL PROTECTED] wrote: Ah! Useful for finding an announcement - maybe not. otoh the forums do allow QA without subscription. And requiring subscriptions is necessary to avoid spam. Being able to hash things out without checking yet another bulletin board regularly

Re: [Haskell-cafe] multiline strings in haskell?

2006-01-11 Thread Donald Bruce Stewart
Oh, like this (by Stefan Wehr): http://www.cse.unsw.edu.au/~dons/code/icfp05/tests/unit-tests/VariableExpansion.hs $ ghci -fth VariableExpansion.hs *VariableExpansion let x = 7 in $( expand ${x} ) 7 *VariableExpansion let url = http://www.google.com; *VariableExpansion $( expand Here is

Re: [Haskell-cafe] multiline strings in haskell?

2006-01-11 Thread Michael Vanier
Excellent! Thanks. Mike Donald Bruce Stewart wrote: Oh, like this (by Stefan Wehr): http://www.cse.unsw.edu.au/~dons/code/icfp05/tests/unit-tests/VariableExpansion.hs $ ghci -fth VariableExpansion.hs *VariableExpansion let x = 7 in $( expand ${x} ) 7 *VariableExpansion let url =

[Haskell-cafe] Haskell DB bindings

2006-01-11 Thread oleg
Krasimir Angelov wrote: There are three active database libraries: HDBC, HSQL and Takusen. It is quite disappointing from my point of view. Recently there was the same situation with the GUI libraires. I think the dichotomy between lower-level Haskell libraries (whose API is closer/faithful