[Haskell-cafe] Data.Unique not safe in concurrent environments (or brain burned)?

2007-09-01 Thread Neil Davies
Hi, I was looking over the libraries for bits of GHC (no doubt a standard form of relaxation for readers of this list), and noticed the following statement (in Data.Unique): -- | Creates a new object of type 'Unique'. The value returned will -- not compare equal to any other value of type

[Haskell-cafe] Re: Data.Unique not safe in concurrent environments (or brain burned)?

2007-09-01 Thread Neil Davies
Let me answer this myself - brain burnt... Of course it is OK, that is precisely the semantics of MVars - the are empty or full, thus assuring the mutual exclusion between threads. Been a hard week. Neil ... so the deeper question - why don't you realise these mistakes till five minutes

Re: [Haskell-cafe] defining mapPairs function

2007-09-01 Thread Alexteslin
Brent Yorgey wrote: On 8/29/07, Alexteslin [EMAIL PROTECTED] wrote: Hello, I just came across with this question on the exam and can not think of implementing it. Wait, is this an exam for a class you're taking? Or just a problem from an exam that you're trying to solve for

Re: [Haskell-cafe] defining mapPairs function

2007-09-01 Thread Brent Yorgey
On 9/1/07, Alexteslin [EMAIL PROTECTED] wrote: Hi, It is the former, but I sat an exam and trying to discuss my exam answers which will make no difference to what so ever to an exam, as an exam duration was 1.5 hours. Which means that no matter how much i would like to try to amend my

Re: [Haskell-cafe] RE: Definition of the Haskell standard library

2007-09-01 Thread Sven Panne
On Tuesday 31 July 2007 19:39, Duncan Coutts wrote: [...] The docs for those packages would be available for packages installed via cabal (assuming the user did the optional haddock step) and would link to each other. Well, on a normal Linux distro a user should *never* have to call cabal (or

Re: [Haskell-cafe] RE: Definition of the Haskell standard library

2007-09-01 Thread Chaddaï Fouché
As a enthusiast Perl user over the years, I note that the CPAN and the associated toolkit (the CPAN module, its shell, ExtUtils::MakeMaker and Module::Build) is pretty good at this. It has it's share of cruft (in fact a whole lot of it) but it's certainly better than most solutions in this field

[Haskell-cafe] HApps API Documentation?

2007-09-01 Thread James Britt
Are there alternative sites for HAppS API docs? There are two links on http://happs.org/#documentation but both give File not found! messages. Thanks, James ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] HApps API Documentation?

2007-09-01 Thread Felipe Almeida Lessa
On 9/1/07, James Britt [EMAIL PROTECTED] wrote: Are there alternative sites for HAppS API docs? I'm currently using the one from the tarball (runghc Setup.hs haddock). -- Felipe. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] Learn Prolog...

2007-09-01 Thread jerzy . karczmarczuk
Yes, I know, this is Haskell list. So, I apologize, but not too much... Johan Grönqvist cites me: Anyway, I believe strongly that ALL people who have problems... should be encouraged to learn Prolog. IN DEPTH, Do you have a recommendation on how to do this? (e.g., books, web-pages,

[Haskell-cafe] Re: RE: Definition of the Haskell standard library

2007-09-01 Thread Benjamin Franksen
Sven Panne wrote: On Tuesday 31 July 2007 19:39, Duncan Coutts wrote: [...] The docs for those packages would be available for packages installed via cabal (assuming the user did the optional haddock step) and would link to each other. Well, on a normal Linux distro a user should *never*

Re: [Haskell-cafe] let and fixed point operator

2007-09-01 Thread Mitar
Hi! I did once try to learn Prolog. And failed. Miserably. You should backtrack at this point and try again differently. :-) Mitar ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Re: HApps API Documentation?

2007-09-01 Thread Martin Lütke
James Britt james at neurogami.com writes: Are there alternative sites for HAppS API docs? There are two links on http://happs.org/#documentation but both give File not found! messages. Thanks, James Just compile your one version from the HAppS source. Use runghc Setup.hs

[Haskell-cafe] Re: wanted: HAppS example combining state and io

2007-09-01 Thread Martin Lütke
Thomas Hartman thomas.hartman at db.com writes: In the latest happs (darcs pulled, updated head is 0.9.1 iirc), I am experimenting with the example file in src/HAppS/Examples/HTTP1.hs. I would like to combine state with io. Eventually io will mean stuff like reading from a database, but

Re: [Haskell-cafe] RE: Definition of the Haskell standard library

2007-09-01 Thread Duncan Coutts
On Sat, 2007-09-01 at 18:47 +0200, Sven Panne wrote: On Tuesday 31 July 2007 19:39, Duncan Coutts wrote: [...] The docs for those packages would be available for packages installed via cabal (assuming the user did the optional haddock step) and would link to each other. Well, on a

Re: [Haskell-cafe] interaction between OS processes

2007-09-01 Thread Albert Y. C. Lai
Andrea Rossato wrote: loop s = do putStrLn s Most likely, the content of s sits in a local buffer and never leaves this process, following most OS conventions and as others point out. Another process waiting for it will deadlock. Most similar process deadlock problems are not

Re: [Haskell-cafe] let and fixed point operator

2007-09-01 Thread Albert Y. C. Lai
Mitar wrote: I did once try to learn Prolog. And failed. Miserably. You should backtrack at this point and try again differently. :-) There is likely a problem if he has inadvently walked past a cut. XD ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] Learn Prolog...

2007-09-01 Thread Hugh Perkins
Cool I had prolog for my Spectrum, many years ago (83?), but I stopped using it when I realized it didnt have any input/output capabilities beyond print, and no way to escape from the prolog bubble, eg FFI (not sure what FFI stands for, but I think it is a way for Haskell to escape into other

Re: [Haskell-cafe] RE: Definition of the Haskell standard library

2007-09-01 Thread Hugh Perkins
A really simple way to track the quality of a package is to display the number of downloads. A posteriorae, this works great in other download sites. We can easily hypothesize about why a download count gives a decent indication of some measure of quality: - more people downloading it means more