Re: [Haskell-cafe] Best Linux for Haskell?

2007-11-06 Thread david48
On Nov 7, 2007 6:14 AM, Cale Gibbard <[EMAIL PROTECTED]> wrote: > On 06/11/2007, Tim Docker <[EMAIL PROTECTED]> wrote: > > I can confirm that ghc-6.8.1 builds from source completely without fuss > > on the latest ubuntu (7.10). > > > > (... though it took a couple of hours of cpu time :-) > > > > T

Re: [Haskell-cafe] Best Linux for Haskell?

2007-11-06 Thread Cale Gibbard
On 06/11/2007, Tim Docker <[EMAIL PROTECTED]> wrote: > I can confirm that ghc-6.8.1 builds from source completely without fuss > on the latest ubuntu (7.10). > > (... though it took a couple of hours of cpu time :-) > > Tim I can confirm that the generic x86 binary package for 6.8.1 works on Ubunt

[Haskell-cafe] hoogle broken?

2007-11-06 Thread Michael Vanier
It looks as if hoogle isn't working. I get 404s whenever I try to do any search on hoogle. Mike ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Monte Carlo Pi calculation (newbie learnings)

2007-11-06 Thread Jonathan Cast
On 6 Nov 2007, at 3:56 PM, Yitzchak Gale wrote: I wrote: There is still a problem here - my code (and also all of the previous posters, I think) clobbers the random generator, rendering it unusable for future calculations. In this case that is probably not a problem, but it is a bad habit to g

Re: [Haskell-cafe] Screen scraping with an interactive process: Buffering problems?

2007-11-06 Thread David Benbennick
What about using hGetContents to just read ALL of the input, as a lazy string? Then you look through that string for success or failure. In other words, readACL2Answer pout = do s <- hGetContents pout parse s here ___ Haskell-Cafe mailing list

[Haskell-cafe] Screen scraping with an interactive process: Buffering problems?

2007-11-06 Thread Denis Bueno
Hi all, I'm writing some code to interact with an ACL2 [0] process. I'd like to be able to write a function test :: String -> IO Bool that will attempt to prove something by forking an ACL2 process and screen scraping its output, to see whether the conjecture was proved. The code below [1]

[Haskell-cafe] Leopard: ghc 6.8.1 and the case of the missing _environ

2007-11-06 Thread Joel Reymont
Symptoms: You build 6.8.1 from source on Leopard (x86 in my case) and then junior:ghc-6.8.1 joelr$ ghci GHCi, version 6.8.1: http://www.haskell.org/ghc/ :? for help ghc-6.8.1: /usr/local/lib/ghc-6.8.1/lib/base-3.0.0.0/HSbase-3.0.0.0.o: unknown symbol `_environ' Loading package base ... linkin

Re: [Haskell-cafe] Fibbonachi numbers algorithm work TOO slow.

2007-11-06 Thread ajb
G'day all. Quoting [EMAIL PROTECTED]: There is one solution missing there (unless I skipped it) fib n=((1+s)/2)^n-((1-s)/2)^n)/s where s=sqrt 5 If some of you complain that this is real, not integer, please remember that Leonardo of Pisa thought of applying this to rabbits. Well, rabbits are no

[Haskell-cafe] Re: CPP, Leopard and Haskell Objective-C bindings

2007-11-06 Thread Joel Reymont
On Nov 6, 2007, at 6:57 PM, Wolfgang Thaller wrote: That is not exactly what we want, I think. Currently, HOC parses things file-by-file, so we do NOT want to follow #include directives. We might just process the line pragmas from CPP to keep track of where things came from, OTOH. You _d

Re: [Haskell-cafe] Monte Carlo Pi calculation (newbie learnings)

2007-11-06 Thread Yitzchak Gale
I wrote: >> There is still a problem here - my code (and also >> all of the previous posters, I think) clobbers the random >> generator, rendering it unusable for future calculations. >> In this case that is probably not a problem, but it >> is a bad habit to get into, and not very polite. Jonatha

Re: [Haskell-cafe] Monte Carlo Pi calculation (newbie learnings)

2007-11-06 Thread Don Stewart
lrpalmer: > On Nov 5, 2007 8:11 PM, Alex Young <[EMAIL PROTECTED]> wrote: > > {--} > > module Main where > > > > import Random > > import System.Environment > > import List > > import Monad > > > > randMax = 32767 > > unitRadius = randMax * randMax >

Re: [Haskell-cafe] Monte Carlo Pi calculation (newbie learnings)

2007-11-06 Thread Luke Palmer
On Nov 5, 2007 8:11 PM, Alex Young <[EMAIL PROTECTED]> wrote: > {--} > module Main where > > import Random > import System.Environment > import List > import Monad > > randMax = 32767 > unitRadius = randMax * randMax > > rand :: IO Int > rand = getStd

Re: [Haskell-cafe] Monte Carlo Pi calculation (newbie learnings)

2007-11-06 Thread Yitzchak Gale
Hi Alex, > I think I would have avoided most of the problems > in the first place. I'm finding the documentation > to be rather undiscoverable at the moment, but I'm > sure it's just a question of learning my way around it. Make sure to keep http://haskell.org/ghc/docs/latest/html/libraries/ on

RE: [Haskell-cafe] Best Linux for Haskell?

2007-11-06 Thread Tim Docker
I can confirm that ghc-6.8.1 builds from source completely without fuss on the latest ubuntu (7.10). (... though it took a couple of hours of cpu time :-) Tim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Seth Gordon Sent: Wednesday, 7 November 2007 7:

[Haskell-cafe] Re: Best Linux for Haskell?

2007-11-06 Thread Ivan Lazar Miljenovic
Seth Gordon wrote: > Peter Verswyvelen wrote: > > Each year I give Linux a try. And usually I kick it off my harddrive > > after a month, and stick to Windows. However, it does get better each > > year, so… > > > > > > > > So which kind Linux works best for running GHC (6.8.1) and related >

Re: [Haskell-cafe] GHC 6.8 and Mac OS X Leopard

2007-11-06 Thread Brian P. O'Hanlon
On Nov 6, 2007 5:10 PM, Tim Clark <[EMAIL PROTECTED]> wrote: > Has anyone got GHC 6.8.1 building on Leopard? Unfortunately macports > isn't even letting me build GHC 6.6.1 since the bootstrap GHC isn't > working. Does anyone have any ideas or am I just too impatient? Oh, right... that thread is in

[Haskell-cafe] GHC 6.8 and Mac OS X Leopard

2007-11-06 Thread Tim Clark
Has anyone got GHC 6.8.1 building on Leopard? Unfortunately macports isn't even letting me build GHC 6.6.1 since the bootstrap GHC isn't working. Does anyone have any ideas or am I just too impatient? Thanks, Tim Clark ___ Haskell-Cafe mailing list Hask

Re: [Haskell-cafe] Re: Best Linux for Haskell?

2007-11-06 Thread Martin DeMello
On 11/6/07, Maurí­cio <[EMAIL PROTECTED]> wrote: > > Maybe (and only maybe), before choosing a > distribution, you should choose a package system, > since that's what you are going to use to install > software. Look for RPM and APT, and see what you > think. With my package system (I don't wanna gi

Re: [Haskell-cafe] Best Linux for Haskell?

2007-11-06 Thread Bulat Ziganshin
Hello Peter, Tuesday, November 6, 2007, 10:04:02 PM, you wrote: > So which kind Linux works best for running GHC (6.8.1) and related > tools? (I want to give Yi a go, I can▓t get it to work on Windows). Debian? > Fedora? Ubuntu? you are not too original - i've asked exactly the same question exa

Re[2]: [Haskell-cafe] FP design

2007-11-06 Thread Bulat Ziganshin
Hello Andrew, Tuesday, November 6, 2007, 10:55:58 PM, you wrote: >> for me, abstraction is anything that i want to be an abstraction. i >> just write code in the close-to-natural language and it becomes >> Haskell program when appropriate syntax applied. > Well, in my experience, figuring out ju

Re: [Haskell-cafe] Re: Best Linux for Haskell?

2007-11-06 Thread Alex Sandro Queiroz e Silva
Hallo, Maurí­cio escreveu: > > Maybe (and only maybe), before choosing a > distribution, you should choose a package system, > since that's what you are going to use to install > software. Look for RPM and APT, and see what you > think. With my package system (I don't wanna give > you any prejudi

[Haskell-cafe] Re: Best Linux for Haskell?

2007-11-06 Thread Maurí­cio
> Each year I give Linux a try. (...) > > So which kind Linux works best for running GHC > (6.8.1) and related tools? (I want to give Yi a > go, I can’t get it to work on Windows). > Debian? Fedora? Ubuntu? (...) > > Maybe (and only maybe), before choosing a distribution, you should choose a pack

Re: [Haskell-cafe] type/class question: toString

2007-11-06 Thread Graham Fawcett
On Nov 6, 2007 3:29 PM, Graham Fawcett <[EMAIL PROTECTED]> wrote: > On Nov 6, 2007 2:21 PM, Jeff Polakow <[EMAIL PROTECTED]> wrote: > > Have you tried using -fglasgow-exts? That should enable all ghc > > extensions. If anyone's interested, I had best results when I added the flag -fallow-incoher

Re: [Haskell-cafe] Best Linux for Haskell?

2007-11-06 Thread Felipe Lessa
On 11/6/07, Seth Gordon <[EMAIL PROTECTED]> wrote: > I strongly suspect that if you got hold of 6.8.1 > packages that were built for Debian, they would also install on Ubuntu, > but I haven't tried doing that yet. IME, this is very tricky to do right, even if the dependencies are the same (e.g. li

[Haskell-cafe] Re: ghc -e with standard input

2007-11-06 Thread Maurí­cio
>> Actually, what I want is to select a region of >> text from emacs and get back the result of that >> evaluated as haskell code. So, I need something >> that is fast to type > > M-| xargs ghc -e > > almost works - but ghc -e evaluates only a single argument, so you > need to enclose the region w

Re: [Haskell-cafe] Best Linux for Haskell?

2007-11-06 Thread Seth Gordon
Peter Verswyvelen wrote: Each year I give Linux a try. And usually I kick it off my harddrive after a month, and stick to Windows. However, it does get better each year, so… So which kind Linux works best for running GHC (6.8.1) and related tools? (I want to give Yi a go, I can’t get it to

Re: [Haskell-cafe] type/class question: toString

2007-11-06 Thread Graham Fawcett
On Nov 6, 2007 2:21 PM, Jeff Polakow <[EMAIL PROTECTED]> wrote: > Have you tried using -fglasgow-exts? That should enable all ghc > extensions. Ah thanks, that does it. G ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mai

Re: [Haskell-cafe] Go parallel

2007-11-06 Thread Andrew Coppin
Don Stewart wrote: andrewcoppin: Somebody correct me here - I was under the impression that you only ever need forkIO if you're doing something strange with FFI, and usually you just want fork? That's incorrect. forkIO is *the* basic threading primitive for fast, light Haskell threa

Re: [Haskell-cafe] FP design

2007-11-06 Thread Andrew Coppin
Bulat Ziganshin wrote: Hello Andrew, Tuesday, November 6, 2007, 9:34:34 PM, you wrote: It used to be easier with OOP. I'm still not quite sure how to pick the best possible abstractions in an FP context... for me, abstraction is anything that i want to be an abstraction. i just write

Re: [Haskell-cafe] FP design

2007-11-06 Thread Thomas Schilling
On Tue, 2007-11-06 at 10:32 +1030, Levi Stephen wrote: > Hi, > > I'm was wondering how most people work during when designing a functional > program. Do you create data structures/types first? Do you work from some > type > signatures? As others have mentioned: both. But there's a third thing

Re[2]: [Haskell-cafe] FP design

2007-11-06 Thread Bulat Ziganshin
Hello Andrew, Tuesday, November 6, 2007, 9:34:34 PM, you wrote: > It used to be easier with OOP. I'm still not quite sure how to pick the > best possible abstractions in an FP context... for me, abstraction is anything that i want to be an abstraction. i just write code in the close-to-natural l

Re: [Haskell-cafe] type/class question: toString

2007-11-06 Thread Jeff Polakow
Hello, Have you tried using -fglasgow-exts? That should enable all ghc extensions. -Jeff [EMAIL PROTECTED] wrote on 11/06/2007 02:02:11 PM: > On Nov 6, 2007 12:15 PM, David Benbennick <[EMAIL PROTECTED]> wrote: > > In ghc 6.8.1, the error messages are more helpful: > > > > foo.hs:5:0: > >

RE: [Haskell-cafe] Best Linux for Haskell?

2007-11-06 Thread Peter Verswyvelen
> For a stupid question, it has certainly started many a flame war and > heated argument, and people still disagree greatly on it, so I would The French say "Le goût et les couleurs, ça ne se discute as". I guess the same goes for operating systems... > not consider it such. The next question y

Re: [Haskell-cafe] Best Linux for Haskell?

2007-11-06 Thread David Fox
On 11/6/07, Peter Verswyvelen <[EMAIL PROTECTED]> wrote: > So which kind Linux works best for running GHC (6.8.1) and related tools? (I > want to give Yi a go, I can't get it to work on Windows). Debian? Fedora? > Ubuntu? I took an informal poll at this year's Haskell Hackathon, and well over hal

Re: [Haskell-cafe] Go parallel

2007-11-06 Thread Lukas Mai
Am Dienstag, 6. November 2007 schrieb Andrew Coppin: > > Somebody correct me here - I was under the impression that you only ever > need forkIO if you're doing something strange with FFI, and usually you > just want fork? You're probably thinking of forkOS vs. forkIO. AFAIK there is no fork in Has

Re: [Haskell-cafe] Best Linux for Haskell?

2007-11-06 Thread Brian P. O'Hanlon
On Nov 6, 2007 2:04 PM, Peter Verswyvelen <[EMAIL PROTECTED]> wrote: > > > > > Each year I give Linux a try. And usually I kick it off my harddrive after a > month, and stick to Windows. However, it does get better each year, so… I have not used Windows since 98, but I am going to make the bigoted

[Haskell-cafe] Standalone PNG module?

2007-11-06 Thread Peter Verswyvelen
I would like to load 32-bit images (RGB+alpha) for use with GLUT/OpenGL. I know GTK2HS has support for loading images, but does a standalone Haskell (wrapper) module exists for loading images? PNG or TGA would be enough for me. Yes, I could of course just use the GTK2HS OpenGL widget s

Re: [Haskell-cafe] type/class question: toString

2007-11-06 Thread Graham Fawcett
On Nov 6, 2007 12:03 PM, Thomas Schilling <[EMAIL PROTECTED]> wrote: > On Tue, 2007-11-06 at 09:18 -0500, Graham Fawcett wrote: > > Hi folks, > > Is there a way to declare a 'toString' function, such that > > toString x | = x > > toString x | = show x > I think the simpler solution (for your part

[Haskell-cafe] Best Linux for Haskell?

2007-11-06 Thread Peter Verswyvelen
Each year I give Linux a try. And usually I kick it off my harddrive after a month, and stick to Windows. However, it does get better each year, so. So which kind Linux works best for running GHC (6.8.1) and related tools? (I want to give Yi a go, I can't get it to work on Windows). Debian? Fe

Re: [Haskell-cafe] type/class question: toString

2007-11-06 Thread Graham Fawcett
On Nov 6, 2007 12:15 PM, David Benbennick <[EMAIL PROTECTED]> wrote: > In ghc 6.8.1, the error messages are more helpful: > > foo.hs:5:0: > Illegal instance declaration for `MyShow String' > (All instance types must be of the form (T t1 ... tn) > where T is not a synonym. >

[Haskell-cafe] Re: CPP, Leopard and Haskell Objective-C bindings

2007-11-06 Thread Wolfgang Thaller
On 6-Nov-07, at 5:00 PM, Joel Reymont wrote: It seems that the current approach taken by HOC is to strip preprocessing directives. True. Additionally, some of those strange macros are just interpreted as language keywords by the parser. I'm trying to figure out the easiest way to run CPP

Re: [Haskell-cafe] Go parallel

2007-11-06 Thread Don Stewart
andrewcoppin: > Tim Docker wrote: > >Is it possible to use the forkIO primitive to cause pure computations > >to be evaluated in parallel threads? > > > > Somebody correct me here - I was under the impression that you only ever > need forkIO if you're doing something strange with FFI, and usual

Re: [Haskell-cafe] FP design

2007-11-06 Thread Andrew Coppin
Levi Stephen wrote: Hi, I'm was wondering how most people work during when designing a functional program. Do you create data structures/types first? Do you work from some type signatures? In *any* programming language, my workflow usually goes like this: 1. Think about it for a minute or t

Re: [Haskell-cafe] Go parallel

2007-11-06 Thread Andrew Coppin
Tim Docker wrote: Is it possible to use the forkIO primitive to cause pure computations to be evaluated in parallel threads? Somebody correct me here - I was under the impression that you only ever need forkIO if you're doing something strange with FFI, and usually you just want fork? __

Re: [Haskell-cafe] CPP, Leopard and Haskell Objective-C bindings

2007-11-06 Thread Malcolm Wallace
> Is there a CPP written in Haskell and packaged as a library? Yes, cpphs, which can be used either as a stand-alone tool or as a library. http://haskell.org/cpphs Regards, Malcolm ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://w

Re: [Haskell-cafe] type/class question: toString

2007-11-06 Thread Thomas Schilling
On Tue, 2007-11-06 at 09:18 -0500, Graham Fawcett wrote: > Hi folks, > > Is there a way to declare a 'toString' function, such that > > toString x | = x > toString x | = show x > > Perhaps, in the type system, there's a way to declare a ToString > class, and somehow "inherit" all instances of

Re: [Haskell-cafe] type/class question: toString

2007-11-06 Thread Luke Palmer
> I'm assuming you're not fond of the way the print function handles > Strings? > > With GHC you can do this: > > > {-# OPTIONS -fallow-overlapping-instances #-} > > {-# OPTIONS -fallow-undecidable-instances #-} > > > > class Show a => MyShow a where show_ :: a -> String > > instance MyShow String

Re: [Haskell-cafe] Problem linking with GHC 6.8.1

2007-11-06 Thread Alberto Ruiz
If you don't use the foreign function interface I think that you only need the -L option: ghc --make -L/usr/local/lib/ghc-6.8.1/gmp -O2 -o edimail Main.hs Something similar worked for me, but this new behavior is not very reasonable. Could it be a bug? On Tuesday 06 November 2007 17:47, david4

Re: [Haskell-cafe] type/class question: toString

2007-11-06 Thread David Benbennick
On 11/6/07, Graham Fawcett <[EMAIL PROTECTED]> wrote: > ToString.hs:5:0: > Illegal instance declaration for `MyShow String' > (The instance type must be of form (T a b c) > where T is not a synonym, and a,b,c are distinct type variables) > In the instance declaration for `M

Re: [Haskell-cafe] Problem linking with GHC 6.8.1

2007-11-06 Thread david48
On 11/6/07, david48 <[EMAIL PROTECTED]> wrote: well I'm not sure where to use the -I/path/to/ghc... so I tried this : $ cd /usr/local/lib/ghc-6.8.1 $ sudo cp -R /home/david/Desktop/ghc-6.8.1/gmp . $ ghc --make -I/usr/local/lib/ghc-6.8.1/gmp -O2 -o edimail Main.hs Linking edimail ... /usr/bin/ld:

Re: [Haskell-cafe] Problem linking with GHC 6.8.1

2007-11-06 Thread david48
On 11/6/07, Alberto Ruiz <[EMAIL PROTECTED]> wrote: > I have the same problem. And gmp.h is also not found when using the FFI. I > must add: > cc-options: -I/path/to/ghc-6.8.1/gmp unfortunately : $ find /usr/local/lib/ghc-6.8.1 -name *gmp* -ls $ ghc was installed this way : $ tar xvfj g

Re: [Haskell-cafe] type/class question: toString

2007-11-06 Thread Graham Fawcett
On Nov 6, 2007 10:30 AM, Bayley, Alistair <[EMAIL PROTECTED]> wrote: > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of Graham Fawcett > > Is there a way to declare a 'toString' function, such that > > toString x | = x > > toString x | = show x > I'm assuming you're not fond o

Re: [Haskell-cafe] Monte Carlo Pi calculation (newbie learnings)

2007-11-06 Thread Jonathan Cast
On 6 Nov 2007, at 6:00 AM, Yitzchak Gale wrote: There is still a problem here - my code (and also all of the previous posters, I think) clobbers the random generator, rendering it unusable for future calculations. In this case that is probably not a problem, but it is a bad habit to get into, a

[Haskell-cafe] CPP, Leopard and Haskell Objective-C bindings

2007-11-06 Thread Joel Reymont
It seems that the current approach taken by HOC is to strip preprocessing directives. This may not have been a problem before Leopard but Cocoa header files are now full of macros in most unusual places, e.g. @interface NSObject (NSDeprecatedMethods) + (void)poseAsClass:(Class)aClass DEP

Re: [Haskell-cafe] FP design

2007-11-06 Thread Jules Bean
Levi Stephen wrote: Hi, I'm was wondering how most people work during when designing a functional program. Do you create data structures/types first? Do you work from some type signatures? For example, take a blog. Is the first step likely to be something like: data BlogEntry = BlogEntry {

Re: [Haskell-cafe] Problem linking with GHC 6.8.1

2007-11-06 Thread Alberto Ruiz
I have the same problem. And gmp.h is also not found when using the FFI. I must add: cc-options: -I/path/to/ghc-6.8.1/gmp On Tuesday 06 November 2007 16:07, david48 wrote: > This is a program that works under ghci. > GHC was installed using the tarball on hashell.org. > When I try to com

RE: [Haskell-cafe] type/class question: toString

2007-11-06 Thread Bayley, Alistair
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Graham Fawcett > > Is there a way to declare a 'toString' function, such that > > toString x | = x > toString x | = show x > > Perhaps, in the type system, there's a way to declare a ToString > class, and somehow "inherit" all

[Haskell-cafe] Problem linking with GHC 6.8.1

2007-11-06 Thread david48
This is a program that works under ghci. GHC was installed using the tarball on hashell.org. When I try to compile the program, it can't link. It used to work with 6.6.1. ghc --version The Glorious Glasgow Haskell Compilation System, version 6.8.1 ghc --make -O2 -o edimail Main.hs [1 of 5] Compil

RE: [Haskell-cafe] Is there a module for multivariate linear regression?

2007-11-06 Thread Lihn, Steve
Thanks. I have been wondering if there is a Haskell interface to Octave and maybe to Scilab. Steve -Original Message- From: Henning Thielemann [mailto:[EMAIL PROTECTED] > I am looking for a Haskell module that will do multivariate linear > regression. Does someone know which module will

[Haskell-cafe] type/class question: toString

2007-11-06 Thread Graham Fawcett
Hi folks, Is there a way to declare a 'toString' function, such that toString x | = x toString x | = show x Perhaps, in the type system, there's a way to declare a ToString class, and somehow "inherit" all instances of Show as ToString instances? Thanks, Graham ___

Re: [Haskell-cafe] Monte Carlo Pi calculation (newbie learnings)

2007-11-06 Thread Yitzchak Gale
Hi Alex, You wrote: > I'm new to Haskell, and don't quite understand how IO and lazy > evaluation work together yet. In order to improve my understanding, I > thought I'd try to knock together a translation of a fairly simple > problem I can code up in C... > Now, I have two questions. The easy

Re: [Haskell-cafe] Re: speeding up fibonacci with memoizing

2007-11-06 Thread Henning Thielemann
On Tue, 6 Nov 2007, marnes wrote: > > fib :: Integer -> Integer > fib n = fibaux n 0 1 1 >where > fibaux :: Integer -> Integer -> Integer -> Integer -> Integer > fibaux i a b c | i==0 = a >| i/=0 = fibaux (i-1) b c (b+c) http://www.haskell.org/haskellwiki/Memo

Re: [Haskell-cafe] Strange Type Inference

2007-11-06 Thread Henning Thielemann
On Mon, 5 Nov 2007, C.M.Brown wrote: > I was given a quandary this evening, suppose I have the following code: Did you already try Prelude's 'asTypeOf' function? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/list

Re: [Haskell-cafe] Monte Carlo Pi calculation (newbie learnings)

2007-11-06 Thread Henning Thielemann
On Mon, 5 Nov 2007, Andrew Coppin wrote: > randList :: Int -> IO [Int] > randList n = mapM (\x -> randomRIO (0, randMax)) [1..n] replicateM n (randomRIO (0, randMax)) but it is certainly better to use randomR and wrap it in a State monad ___ Haske

Re: [Haskell-cafe] Is there a module for multivariate linear regression?

2007-11-06 Thread Henning Thielemann
On Mon, 5 Nov 2007, Lihn, Steve wrote: > I am looking for a Haskell module that will do multivariate linear > regression. Does someone know which module will do it? That is, the > equivalent of Perl's Statistics::Regression.pm. > > http://search.cpan.org/~itub/PerlMol-0.35_00.ppm/lib/Statistics/R

[Haskell-cafe] Web Application Sessions

2007-11-06 Thread Lars Oppermann
Hello, I'm currently looking into web application programming with Haskell. Though I am aware of HAppS, a lighttpd/fastcgi based approach is what I'm currently considering. It seems rather straightforward to implement a session manager, that would maintian some server side state which is passed to