Re: [Haskell-cafe] More accessible papers

2007-11-20 Thread Ketil Malde
Peter Verswyvelen <[EMAIL PROTECTED]> writes: > Most research papers have the same layout: two columns per A4 > page. They mostly come as PDF or PS. I think it is (more and more) common these days for journals to publish an HTML version on their web site. Otherwise I'd suggest e-mailing the auth

Re: [Haskell-cafe] expanded standard lib

2007-11-20 Thread Brandon S. Allbery KF8NH
On Nov 20, 2007, at 3:25 , Ketil Malde wrote: "Brandon S. Allbery KF8NH" <[EMAIL PROTECTED]> writes: Only up to a point; not all programs written using such libraries are necessarily going to end up on hackage. (Consider the code written by the financials folks that have been mentioned here

Re: [Haskell-cafe] HTTP actions & proxy server

2007-11-20 Thread Jim Burton
Thank you, that's perfect. Jim stefan kersten-2 wrote: > > On 16.11.2007, at 13:55, Jim Burton wrote: >> The docs say "Should be of the form http://host:port, host, >> host:port, or >> http://host"; but none of the variations work. Any ideas where I >> might find >> an example of code that

Re: [Haskell-cafe] expanded standard lib

2007-11-20 Thread Mikhail Gusarov
Simon Peyton-Jones <[EMAIL PROTECTED]> writes: > * Hardest of all: evolution. Both GHC's user manual and library docs > change every release. Even material that doesn't change can get moved > (e.g. section reorganisation). We don't want to simply discard all > user notes! But it's hard to know

Re: [Haskell-cafe] RFC: demanding lazy instances of Data.Binary

2007-11-20 Thread Duncan Coutts
On Mon, 2007-11-19 at 20:22 -0600, Nicolas Frisby wrote: > On Nov 19, 2007 4:16 PM, Duncan Coutts <[EMAIL PROTECTED]> wrote: > > > > On Mon, 2007-11-19 at 13:39 -0800, Don Stewart wrote: > > > nicolas.frisby: > > *snip* > > > > > > > > >1) The fact that serialisation is fully strict for 32760

Re: [Haskell-cafe] RFC: demanding lazy instances of Data.Binary

2007-11-20 Thread Duncan Coutts
On Mon, 2007-11-19 at 20:06 -0600, Nicolas Frisby wrote: > In light of this discussion, I think the "fully spine-strict list > instance does more good than bad" argument is starting to sound like a > premature optimization. Consequently, using a newtype to treat the > necessarily lazy instances as

Re: [Haskell-cafe] Translations and Haskell

2007-11-20 Thread Duncan Coutts
On Mon, 2007-11-19 at 23:18 -0200, Felipe Lessa wrote: > Hello, > > I'd like to start a project using Gtk2Hs and one thing is concerning > me: what's the current approach on writing portable and translatable > GUI programs in Haskell? For the simple case of translating strings in a .glade UI, gla

RE: [Haskell-cafe] expanded standard lib

2007-11-20 Thread Bayley, Alistair
> | > the php documentation has "user contributed notes" > | > http://www.php.net/manual/en/introduction.php > | > I think this is a very nice feature. > > > * Hardest of all: evolution. Both GHC's user manual and > library docs change every release. Even material that > doesn't change can ge

Re: [Haskell-cafe] expanded standard lib

2007-11-20 Thread Ketil Malde
"Brandon S. Allbery KF8NH" <[EMAIL PROTECTED]> writes: >> Kind of like Google PageRank for libraries. Yes. > Only up to a point; not all programs written using such libraries are > necessarily going to end up on hackage. (Consider the code written > by the financials folks that have been mentio

RE: [Haskell-cafe] expanded standard lib

2007-11-20 Thread Simon Peyton-Jones
| > the php documentation has "user contributed notes" where people can leave | > sniplets of useful code as comments, eg | | > http://www.php.net/manual/en/introduction.php | | > I think this is a very nice feature. | | I would love to have this on haskell, especially because the | documentation o

Re: [Haskell-cafe] expanded standard lib

2007-11-20 Thread Radosław Grzanka
Hi, > * Hardest of all: evolution. Both GHC's user manual and library docs change > every release. Even material that doesn't change can get moved (e.g. section > reorganisation). We don't want to simply discard all user notes! But it's > hard to know how to keep them attached; after all th

[Haskell-cafe] Re: expanded standard lib

2007-11-20 Thread apfelmus
Simon Peyton-Jones wrote: | > the php documentation has "user contributed notes" where people can leave | > sniplets of useful code as comments, eg | | > http://www.php.net/manual/en/introduction.php | | > I think this is a very nice feature. | | I would love to have this on haskell, especially b

Re: [Haskell-cafe] Tetris

2007-11-20 Thread Jon Harrop
On Monday 19 November 2007 22:12, Don Stewart wrote: > Check the thesis on Frag for a pure approach, or just use StateT IO. Has Frag been fixed to work on x86-64? -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/products/?e ___

Re[2]: [Haskell-cafe] expanded standard lib

2007-11-20 Thread Bulat Ziganshin
Hello Brandon, Tuesday, November 20, 2007, 1:15:34 AM, you wrote: >>> The ability to "vote" on packages might be interesting here. If >>> there's 4 HTML libraries and one of them gets lots of votes, it's >>> probably the one to look at first. it can be made easy and automatic by just publishing

Re: [Haskell-cafe] Fun with Cabal on Windows! [Stream fusion for Hackage]

2007-11-20 Thread Radosław Grzanka
Hi, I have same problem. > Hm, this actually is supposed to work. Could you please re-run this > procedure with the original path and with maximum verbosity? I.e.: > > > runhaskell Setup configure -v3 Here is the problem: D:\private\haskell\MaybeT-0.1.0>runghc Setup.hs configure -v3 Configu

Re[2]: [Haskell-cafe] expanded standard lib

2007-11-20 Thread Bulat Ziganshin
Hello Andrew, Monday, November 19, 2007, 10:47:49 PM, you wrote: > - (And, since I'm on Windows, I can't seem to get anything to install > with Cabal...) with ghc 6.4/6.6 and their built-in Cabal version, i never seen problems. sorry, can't say anything about 6.8 and new Cabal -- Best regards,

[Haskell-cafe] Re: How to abort a computation within Continuation Monad?

2007-11-20 Thread Gleb Alexeyev
Dimitry Golubovsky wrote: If I have callCC $ \exit -> do foo ... I cannot jump to `exit' from within foo unless `exit' is given to foo as an argument. As Derek Elkins has written, one of the options is to use delimited continuations, see http://research.microsoft.com/~simonpj/papers/cont

Re: [Haskell-cafe] expanded standard lib

2007-11-20 Thread Duncan Coutts
On Mon, 2007-11-19 at 21:49 -0800, Bryan O'Sullivan wrote: > Neil Mitchell wrote: > > >> - The packages seem to be of quite variable quality. Some are excellent, > >> some are rather poor (or just not maintained any more). > > > > The problem is that only one person gets to comment on the quality

Re: Re[2]: [Haskell-cafe] expanded standard lib

2007-11-20 Thread Duncan Coutts
On Tue, 2007-11-20 at 13:45 +0300, Bulat Ziganshin wrote: > Hello Brandon, > > Tuesday, November 20, 2007, 1:15:34 AM, you wrote: > > >>> The ability to "vote" on packages might be interesting here. If > >>> there's 4 HTML libraries and one of them gets lots of votes, it's > >>> probably the one

[Haskell-cafe] -O2 bug in GHC 6.8.1?

2007-11-20 Thread Brad Clow
I upgraded from GHC 6.6.1 to 6.8.1 and around that time I noticed that the output from an app I am working on changed. I have distilled the code down to the following example that produces different output depending on whether it is compiled with -O2 or not: main = do let (T x) = read "T 3"

Re: [Haskell-cafe] Re: Knot tying vs monads

2007-11-20 Thread John D. Ramsdell
Chris, You answer was quite a bit more than I expected for a simple style question. Thanks. On Nov 19, 2007 12:27 PM, ChrisK <[EMAIL PROTECTED]> wrote: > The data dependency is circular. Yes, thus the need for the knot. I gather your answer to my style question is you prefer knot tying over

Re: [Haskell-cafe] expanded standard lib

2007-11-20 Thread Duncan Coutts
On Mon, 2007-11-19 at 10:25 -0800, brad clawsie wrote: > i would categorize myself as a purely practical programmer. i enjoy > using haskell for various practical tasks and it has served me > reliably. one issue i have with the library support for practical > problem domains is the half-finished st

Re: [Haskell-cafe] Re: Knot tying vs monads

2007-11-20 Thread John D. Ramsdell
On Nov 19, 2007 11:42 AM, apfelmus <[EMAIL PROTECTED]> wrote: > Thanks. The interesting case of nested blocks still needs to be > specified, but with this description in mind and judging from the code, > I guess it behaves as follows: either a block fits entirely on the > remaining line (no line b

Re: [Haskell-cafe] The Yampa Arcade: source code available?

2007-11-20 Thread Peter Verswyvelen
Thanks for the feedback. Unfortunatly the Space Invaders game uses HGL, which is not supported on Windows anymore. Is it supported on Linux? Frag does compile and run on Windows using GHC 6.6.1, so that might be a better starting point. What is the current consensus regarding (A)FRP? Is it a

Re: [Haskell-cafe] expanded standard lib

2007-11-20 Thread Johan Tibell
> I would like to compare this to the GNOME development platform. It has > Gtk+ at it's hart but GNOME releases are not synchronised with Gtk+ > releases. The GNOME development platform consists of a collection of > standard packages. The collection is released on a time-based schedule, > not a fea

Re: [Haskell-cafe] expanded standard lib

2007-11-20 Thread Krzysztof Kościuszkiewicz
On Tue, Nov 20, 2007 at 08:55:47AM +, Simon Peyton-Jones wrote: > But we're just not sure how to do it: > > * What technology to use? > > * Matching up the note-adding technology with the existing > infrastructure - GHC's user manual starts as XML and is generated into > HTML by DocBook - In c

Re: [Haskell-cafe] expanded standard lib

2007-11-20 Thread Vladimir Zlatanov
Yes, those are good points. Maybe adding functionality similar to plt's planet http://planet.plt-scheme.org and http://download.plt-scheme.org/doc/371/html/mzscheme/mzscheme-Z-H-5.html#node_sec_5.4 In plt scheme including a module, not present in the local repository , but included via planet, res

[Haskell-cafe] Re: -O2 bug in GHC 6.8.1?

2007-11-20 Thread Christian Maeder
good bug! -O or -O2 is irrelevant but it works if compiled with -fvia-C You (or someone else) should add it to http://hackage.haskell.org/trac/ghc Christian Brad Clow wrote: > I upgraded from GHC 6.6.1 to 6.8.1 and around that time I noticed that > the output from an app I am working on changed.

Re: [Haskell-cafe] expanded standard lib

2007-11-20 Thread Thomas Schilling
On Tue, 2007-11-20 at 12:33 +, Krzysztof Kościuszkiewicz wrote: > On Tue, Nov 20, 2007 at 08:55:47AM +, Simon Peyton-Jones wrote: > > > But we're just not sure how to do it: > > > > * What technology to use? > > > > * Matching up the note-adding technology with the existing > > infrastruct

[Haskell-cafe] Re: user error when using Text.Regex.PCRE

2007-11-20 Thread ChrisK
Thank you very much for the error report. I have tracked down the cause. You are searching against an empty Bytestring. This is now represented by > -- | /O(1)/ The empty 'ByteString' > empty :: ByteString > empty = PS nullForeignPtr 0 0 And while the useAsCString and useAsCStringLen functions

[Haskell-cafe] Re: -O2 bug in GHC 6.8.1?

2007-11-20 Thread apfelmus
Christian Maeder wrote: good bug! -O or -O2 is irrelevant but it works if compiled with -fvia-C You (or someone else) should add it to http://hackage.haskell.org/trac/ghc I guess that this is related to http://thread.gmane.org/gmane.comp.lang.haskell.cafe/31675 Regards, apfelmus _

[Haskell-cafe] Re: Knot tying vs monads

2007-11-20 Thread apfelmus
ChrisK wrote: The data dependency is circular. Yes and no. The input and outputs pairs are dependent on each other, but the integer doesn't depend on the string. Thus, I'm pretty sure that (Int, String) -> (Int, String) can be refactored into Int -> (Int, String -> String) This is re

Re: [Haskell-cafe] expanded standard lib

2007-11-20 Thread Ketil Malde
Thomas Schilling <[EMAIL PROTECTED]> writes: >> I would advocate using a comment system that is similar to the one >> at http://djangobook.com/. > I'm pretty sure Brian O'Sullivan has written a Haskell implementation of > this for the Real World Haskell book. While the technology is there (or w

Re: [Haskell-cafe] Tetris

2007-11-20 Thread Mathieu Boespflug
> > 2. How do you implement a program that is fundamentally about state > > mutation in a programming language which abhors state mutation? > > Its not clear games are fundamentally about mutation, anymore than, say, > window managers are. State we do with monads. Indeed. Ignoring the concept of a

[Haskell-cafe] Re: user error when using Text.Regex.PCRE

2007-11-20 Thread Olivier Boudry
On Nov 20, 2007 9:36 AM, ChrisK <[EMAIL PROTECTED]> wrote: > Thank you very much for the error report. I have tracked down the cause. > > You are searching against an empty Bytestring. This is now represented by > > > -- | /O(1)/ The empty 'ByteString' > > empty :: ByteString > > empty = PS null

[Haskell-cafe] Re: [Haskell] Recruiting functional programmers

2007-11-20 Thread Mattias Bengtsson
> Interested in recruiting Haskell programmers from Chalmers/Gothenburg > university? As an experiment, I am planning a recruitment event here in > December-see www.jobs-in-fp.org for how to take part. > Just checked my calendar and all according to Murphy's law this had to be the weekend when i'

[Haskell-cafe] Re: ANNOUNCE: fixpoint 0.1

2007-11-20 Thread Bertram Felgenhauer
[redirecting from [EMAIL PROTECTED] apfelmus wrote: [...] > I wonder whether a multi parameter type class without fundeps/associated > types would be better. > > class Fixpoint f t where > inject :: f t -> t > project :: t -> f t > [...] > Interestingly, this even gives slightly short

Re: [Haskell-cafe] -O2 bug in GHC 6.8.1?

2007-11-20 Thread Olivier Boudry
On 11/20/07, Ian Lynagh <[EMAIL PROTECTED]> wrote: > > > Hi Brad, > > I can't reproduce this. Can you please tell us what platform you are on > (e.g. x86_64 Linux) and what gcc --version says? > > Also, where did your GHC come from, e.g. bindists from the download > page, self-compiled? > > Also, a

[Haskell-cafe] Re: Tetris

2007-11-20 Thread nick ralabate
Speaking of Tetris and Space Invaders, you might be interested in this project: http://www.geocities.jp/takascience/haskell/monadius_en.html It's a clone of Gradius written in Haskell. -Nick ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http:

Re: [Haskell-cafe] expanded standard lib

2007-11-20 Thread Thomas Schilling
On Tue, 2007-11-20 at 16:00 +0100, Ketil Malde wrote: > Thomas Schilling <[EMAIL PROTECTED]> writes: > > >> I would advocate using a comment system that is similar to the one > >> at http://djangobook.com/. > > > I'm pretty sure Brian O'Sullivan has written a Haskell implementation of > > this f

Re: [Haskell-cafe] Fun with Cabal on Windows! [Stream fusion for Hackage]

2007-11-20 Thread Olivier Boudry
On 11/19/07, Andrew Coppin <[EMAIL PROTECTED]> wrote: > > Well, I just tried to install this, and as per usual, Cabal has having > none of it. > > C:\fusion\> runhaskell Setup configure > Configuring stream-fusion-0.1.1... > Setup: ld is required but it could not be found. > Hi Andrew, I had the

Re: [Haskell-cafe] -O2 bug in GHC 6.8.1?

2007-11-20 Thread Ian Lynagh
Hi Brad, On Tue, Nov 20, 2007 at 09:50:02PM +1000, Brad Clow wrote: > > $ ./test > 23 > 24 I can't reproduce this. Can you please tell us what platform you are on (e.g. x86_64 Linux) and what gcc --version says? Also, where did your GHC come from, e.g. bindists from the download page, self-com

[Haskell-cafe] ANNOUNCE: Important bug fix for regex-pcre ByteStrings.

2007-11-20 Thread ChrisK
Greetings, There are new version 0.82 and 0.93 of regex-posix. If you use regex-posix with Data.ByteString then you should upgrade to obtain a fix for a crash error. There are new version of regex-pcre available on hackage and the two darcs repositories: http://darcs.haskell.org/packages/regex-p

Re: [Haskell-cafe] The Yampa Arcade: source code available?

2007-11-20 Thread Thomas Hartman
I was able to compile and play space invaders on linux. Hours of fun for the whole family :) thomas. Peter Verswyvelen <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 11/20/2007 06:46 AM Please respond to [EMAIL PROTECTED] To Don Stewart <[EMAIL PROTECTED]> cc Haskell-Cafe Subject Re: [H

Re: Re[2]: [Haskell-cafe] expanded standard lib

2007-11-20 Thread Brandon S. Allbery KF8NH
On Nov 20, 2007, at 5:45 , Bulat Ziganshin wrote: Hello Brandon, Tuesday, November 20, 2007, 1:15:34 AM, you wrote: The ability to "vote" on packages might be interesting here. If there's 4 HTML libraries and one of them gets lots of votes, it's probably the one to look at first. it can b

Re: [Haskell-cafe] -O2 bug in GHC 6.8.1?

2007-11-20 Thread Bertram Felgenhauer
Ian Lynagh wrote: > > Hi Brad, > > On Tue, Nov 20, 2007 at 09:50:02PM +1000, Brad Clow wrote: > > > > $ ./test > > 23 > > 24 > > I can't reproduce this. Can you please tell us what platform you are on > (e.g. x86_64 Linux) and what gcc --version says? I see a bug that only affects x86_32. The

Re: [Haskell-cafe] Tetris

2007-11-20 Thread Laurent Deniau
Andrew Coppin wrote: > 2. How do you implement a program that is fundamentally about state mutation in a programming language which abhors state mutation? Haskell taught me one thing (at least). The World is not mutating but it is moving. Physics shows that no movement (no time) means no World

Re: [Haskell-cafe] expanded standard lib

2007-11-20 Thread Bryan O'Sullivan
Krzysztof Kościuszkiewicz wrote: I would advocate using a comment system that is similar to the one at http://djangobook.com/. That's an appealing idea, but the devil lies in the details. I wrote just such a comment system for draft chapters of our book, and it's seen a lot of use. Howeve

Re: [Haskell-cafe] -O2 bug in GHC 6.8.1?

2007-11-20 Thread Josef Svenningsson
On Nov 20, 2007 4:32 PM, Ian Lynagh <[EMAIL PROTECTED]> wrote: > > Hi Brad, > > On Tue, Nov 20, 2007 at 09:50:02PM +1000, Brad Clow wrote: > > > > $ ./test > > 23 > > 24 > > I can't reproduce this. Can you please tell us what platform you are on > (e.g. x86_64 Linux) and what gcc --version says? >

Re: [Haskell-cafe] expanded standard lib

2007-11-20 Thread Bulat Ziganshin
Hello brad, Monday, November 19, 2007, 9:25:40 PM, you wrote: > practical projects. the "batteries included" approach does imply > choosing preferred solutions when more than one library is available, > this can also be difficult. that said, i think haskell would pick up a > lot of new coders if

Re: [Haskell-cafe] More accessible papers

2007-11-20 Thread Jeremy Shaw
At Mon, 19 Nov 2007 19:57:14 +, Neil Mitchell wrote: > All these PDF's are produced from a standard Latex class file. For > all my papers I have the original source .tex files. I suspect > you'll have more luck going from the original .tex rather than the > PDF. I would be especially neat if

Re: [Haskell-cafe] -O2 bug in GHC 6.8.1?

2007-11-20 Thread Bertram Felgenhauer
Brad Clow wrote: > I upgraded from GHC 6.6.1 to 6.8.1 and around that time I noticed that > the output from an app I am working on changed. I have distilled the > code down to the following example that produces different output > depending on whether it is compiled with -O2 or not: [...] I've cre

Re: [Haskell-cafe] Tetris

2007-11-20 Thread Jeremy Shaw
At Mon, 19 Nov 2007 21:25:23 +, Andrew Coppin wrote: > > If you were going to implement Tetris in Haskell, how would you do it? > > (For that matter, has anybody already *done* it? It would probably make > a nice example program...) A minimal openGL haskell tetris clone: http://haskell-tet

Re: [Haskell-cafe] Tetris

2007-11-20 Thread Don Stewart
jon: > On Monday 19 November 2007 22:12, Don Stewart wrote: > > Check the thesis on Frag for a pure approach, or just use StateT IO. > > Has Frag been fixed to work on x86-64? Not that I'm aware of -- it lacks a game head maintainer ___ Haskell-Cafe mai

Re: [Haskell-cafe] Tetris

2007-11-20 Thread Don Stewart
jeremy.shaw: > At Mon, 19 Nov 2007 21:25:23 +, > Andrew Coppin wrote: > > > > If you were going to implement Tetris in Haskell, how would you do it? > > > > (For that matter, has anybody already *done* it? It would probably make > > a nice example program...) > > A minimal openGL haskell te

Re: [Haskell-cafe] Re: user error when using Text.Regex.PCRE

2007-11-20 Thread Don Stewart
haskell: > Thank you very much for the error report. I have tracked down the cause. > > You are searching against an empty Bytestring. This is now represented by > > > -- | /O(1)/ The empty 'ByteString' > > empty :: ByteString > > empty = PS nullForeignPtr 0 0 > > And while the useAsCString an

Re: [Haskell-cafe] will the real quicksort please stand up? (or: sorting a > million element list)

2007-11-20 Thread Bertram Felgenhauer
[note, the thread is almost a month old] Bernie Pope wrote: > > On 23/10/2007, at 8:09 AM, Thomas Hartman wrote: >> >> (Prelude sort, which I think is mergesort, just blew the stack.) > > GHC uses a "bottom up" merge sort these days. > > It starts off by creating a list of singletons, then it repe

Re: [Haskell-cafe] Tetris

2007-11-20 Thread Andrew Coppin
Jeremy Shaw wrote: http://haskell-tetris.pbwiki.com/Main A minimal openGL haskell tetris clone: Neat! I shall have to give this a try... ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Tetris

2007-11-20 Thread Andrew Coppin
Don Stewart wrote: andrewcoppin: If you were going to implement Tetris in Haskell, how would you do it? (For that matter, has anybody already *done* it? It would probably make a nice example program...) http://haskell.org/haskellwiki/Applications_and_libraries/Games ASCII tetris

Re: [Haskell-cafe] Tetris

2007-11-20 Thread Radosław Grzanka
Hi, > (Nitpick: Don't you need Gtk2hs in order to *use* OpenGL? I mean, you > have to open a window to render into somehow, and that's outside the > OpenGL standard...) You have GLUT library for just that: http://www.haskell.org/ghc/docs/latest/html/libraries/GLUT-2.1.1.1/Graphics-UI-GLUT.html

Re: [Haskell-cafe] Tetris

2007-11-20 Thread Stefan O'Rear
On Tue, Nov 20, 2007 at 07:27:48PM +, Andrew Coppin wrote: > (Nitpick: Don't you need Gtk2hs in order to *use* OpenGL? I mean, you have > to open a window to render into somehow, and that's outside the OpenGL > standard...) You need *something*, but it need not be Gtk. GLUT and GLX will als

Re: [Haskell-cafe] expanded standard lib

2007-11-20 Thread Keith Fahlgren
On 11/20/07 7:35 AM, Thomas Schilling wrote: > On Tue, 2007-11-20 at 16:00 +0100, Ketil Malde wrote: >> Thomas Schilling <[EMAIL PROTECTED]> writes: >> >> I can all to easily imagine a situation where any documentation is >> riddled with a plethora of notes, questions, answers, comments etc, >> wit

Re: [Haskell-cafe] Re: Tetris

2007-11-20 Thread Gwern Branwen
On Nov 20, 2007 10:41 AM, nick ralabate <[EMAIL PROTECTED]> wrote: > Speaking of Tetris and Space Invaders, you might be interested in this > project: > > http://www.geocities.jp/takascience/haskell/monadius_en.html > > It's a clone of Gradius written in Haskell. > > > -Nick It's a fun enough gam

Re: [Fwd: [Haskell-cafe] Fun with Cabal on Windows! [Stream fusion for Hackage]]

2007-11-20 Thread Andrew Coppin
Duncan Coutts wrote: On Mon, 2007-11-19 at 19:40 -0600, J. Garrett Morris wrote: Reproduced on mine too, I think I always have added that to the PATH as well. Same here, I've also always had to add gcc-lib to the PATH. I've pushed what I think is a fix. It now works for me on w

Re: [Haskell-cafe] Tetris

2007-11-20 Thread Andrew Coppin
Stefan O'Rear wrote: On Tue, Nov 20, 2007 at 07:27:48PM +, Andrew Coppin wrote: (Nitpick: Don't you need Gtk2hs in order to *use* OpenGL? I mean, you have to open a window to render into somehow, and that's outside the OpenGL standard...) You need *something*, but it need not be G

Re: [Haskell-cafe] Re: Tetris

2007-11-20 Thread Radosław Grzanka
Hi > It's a fun enough game under Wine, but has anyone managed to get it to > compile under Linux? I tried but couldn't, and the associated makefile > seems to be very Windows-specific. It's not makefile that is specific but c file for Audio: stub.c It compiles without problem: ghc --make Main

Re: [Haskell-cafe] expanded standard lib

2007-11-20 Thread Andrew Coppin
Brandon S. Allbery KF8NH wrote: On Nov 20, 2007, at 5:45 , Bulat Ziganshin wrote: it can be made easy and automatic by just publishing "number of downloads" on hackage So if I download all 4 HTML libs to try to figure out which one fits best, I mod all four up? Seems wrong to me. Also se

Re: [Haskell-cafe] Tetris

2007-11-20 Thread Bit Connor
> As far as I'm aware, GLUT isn't available for Windows. (Or rather, I > tried it once, and it wasn't happy at all. And after some Google > searching, I found it's not around any more.) GLUT should work fine on windows, but another alternative is SDL, which works on Windows, GNU/Linux, and Mac Th

[Haskell-cafe] Re: Exposed module still hidden, why?

2007-11-20 Thread Olivier Boudry
On 11/20/07, Greg Fitzgerald <[EMAIL PROTECTED]> wrote: > > Using GHC 6.8.1 on Windows XP, after having used ghc-pkg to expose ' > directory-1.0.0.0', I am getting an error when I build haddock that says > the package is hidden. When I type "ghc-pkg list", the package is not in > parenthesis. Typ

Re: [Haskell-cafe] Re: Sillyness in the standard libs.

2007-11-20 Thread Andrew Coppin
Aaron Denney wrote: On 2007-11-19, Andrew Coppin <[EMAIL PROTECTED]> wrote: As I understand it, it's widely recognised that Haskell's current numeric class hierachy is broken (or at best, not very well chosen), but nobody came up with a better suggestion yet. Oh, there are /lots/ of s

Re: [Haskell-cafe] expanded standard lib

2007-11-20 Thread Andrew Coppin
Duncan Coutts wrote: I would like to compare this to the GNOME development platform. It has Gtk+ at it's hart but GNOME releases are not synchronised with Gtk+ releases. The GNOME development platform consists of a collection of standard packages. The collection is released on a time-based schedu

Re: [Haskell-cafe] -O2 bug in GHC 6.8.1?

2007-11-20 Thread Brad Clow
On Nov 21, 2007 1:32 AM, Ian Lynagh <[EMAIL PROTECTED]> wrote: > I can't reproduce this. Can you please tell us what platform you are on > (e.g. x86_64 Linux) and what gcc --version says? Mac OS X 10.4.11 $ gcc --version i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5367)

Re: [Haskell-cafe] Tetris

2007-11-20 Thread Radosław Grzanka
2007/11/20, Bit Connor <[EMAIL PROTECTED]>: > > As far as I'm aware, GLUT isn't available for Windows. (Or rather, I > > tried it once, and it wasn't happy at all. And after some Google > > searching, I found it's not around any more.) > > GLUT should work fine on windows, but another alternative i

Re: [Haskell-cafe] Re: Tetris

2007-11-20 Thread Radosław Grzanka
2007/11/20, Gwern Branwen <[EMAIL PROTECTED]>: > On Nov 20, 2007 10:41 AM, nick ralabate <[EMAIL PROTECTED]> wrote: > > Speaking of Tetris and Space Invaders, you might be interested in this > > project: > > > > http://www.geocities.jp/takascience/haskell/monadius_en.html > > > > It's a clone of G

[Haskell-cafe] Re: Exposed module still hidden, why?

2007-11-20 Thread Greg Fitzgerald
>> Why does GHC still think the package is hidden? > You need to add "directory" to the Build-Depends instruction in the cabal file Thanks Olivier. Haddock now builds with this list for 'build-depends': base>=1.0, haskell98>=1.0, directory>=1.0, process>=1.0, containers>=0.1, array>=0.1, pretty>

Re: [Haskell-cafe] expanded standard lib

2007-11-20 Thread Thomas Schilling
On Tue, 2007-11-20 at 12:03 -0800, Keith Fahlgren wrote: > On 11/20/07 7:35 AM, Thomas Schilling wrote: > > On Tue, 2007-11-20 at 16:00 +0100, Ketil Malde wrote: > >> Thomas Schilling <[EMAIL PROTECTED]> writes: > >> > >> I can all to easily imagine a situation where any documentation is > >> riddl

[Haskell-cafe] gtk2hs problem

2007-11-20 Thread Gregory Propf
I've written a small program using the gtk2hs library and it crashes at unpredictable times with X windows errors like the one below. I looked for the messages online and found various people talking about buggy gtk libraries but no clear solutions. I don't know a lot about X windows or what t

Re: [Haskell-cafe] gtk2hs problem

2007-11-20 Thread Stefan O'Rear
On Tue, Nov 20, 2007 at 03:18:03PM -0800, Gregory Propf wrote: > I've written a small program using the gtk2hs library and it crashes at > unpredictable times with X windows errors like the one below. I looked for > the messages online and found various people talking about buggy gtk > librarie

Re: [Haskell-cafe] Tetris

2007-11-20 Thread Lennart Augustsson
I implemented Tetris in LML long before Haskell existed. It was text based, but looked good with a custom font. :) Haskell has no problem with state, it's just explicit. -- Lennart On Nov 19, 2007 9:25 PM, Andrew Coppin <[EMAIL PROTECTED]> wrote: > If you were going to implement Tetris in Has

[Haskell-cafe] timeout and waitForProcess

2007-11-20 Thread Tim Bauer
Does anyone know if the new System.Timeout.timeout combinator can wakeup from System.Process.waitForProcess? I have not been able to make this work, and it appears as though the timeout exception is thrown only after waitForProcess returns normally (if it ever does). I am using Windows and GHC 6.8

Re: [Haskell-cafe] timeout and waitForProcess

2007-11-20 Thread Bryan O'Sullivan
Tim Bauer wrote: Does anyone know if the new System.Timeout.timeout combinator can wakeup from System.Process.waitForProcess? No, this is expected behaviour per the documentation: "The technique works very well for computations executing inside of the Haskell runtime system, but it doesn't wo

[Haskell-cafe] Re: [Haskell] recursive deriving

2007-11-20 Thread Duncan Coutts
On Tue, 2007-11-20 at 19:18 -0500, Alex Jacobson wrote: > When you want automated deriving of show/read etc., you need all the > components of your type also to be instances of show/read but you won't > want to *require* them to be automatically generated verions. > > Standalone deriving does th

Re: [Haskell-cafe] gtk2hs problem

2007-11-20 Thread Duncan Coutts
On Tue, 2007-11-20 at 15:18 -0800, Gregory Propf wrote: > I'm using the Gtk.timeoutAddFull function to do the animation. Are you using the threaded rts? Are you linking the program with -threaded? Are you doing the drawing directly in the timeout function or just invalidating the window/widget an

Re: [Haskell-cafe] Re: Tetris

2007-11-20 Thread Gwern Branwen
On Nov 20, 2007 4:14 PM, Radosław Grzanka <[EMAIL PROTECTED]> wrote: > 2007/11/20, Gwern Branwen <[EMAIL PROTECTED]>: > > > On Nov 20, 2007 10:41 AM, nick ralabate <[EMAIL PROTECTED]> wrote: > > > Speaking of Tetris and Space Invaders, you might be interested in this > > > project: > > > > > > htt

Re: [Haskell-cafe] Tetris

2007-11-20 Thread Conal Elliott
Moreover, functional programming makes it easy to have much more state than imperative programming, namely state over *continuous* time. The temporally discrete time imposed by the imperative model is pretty puny in comparison. Continuous (or "resolution-independent") time has the same advantages

[Haskell-cafe] Best way to format a number

2007-11-20 Thread Maurí­cio
Hi, I would like to get a string for a number using always 2 digits (i.e., 75 would be "75", 3 would became "03"). What is the best way to do that? I tried printf "%02d\n" 3 which gives me the correct string, but ghci always ends that call with a *** Exception: Prelude.undefined message. What

Re: [Haskell-cafe] Best way to format a number

2007-11-20 Thread Don Stewart
briqueabraque: > Hi, > > I would like to get a string for a number > using always 2 digits (i.e., 75 would be > "75", 3 would became "03"). What is the > best way to do that? I tried > > printf "%02d\n" 3 > > which gives me the correct string, but > ghci always ends that call with a > > *** Exc

Re: [Haskell-cafe] Best way to format a number

2007-11-20 Thread Shachaf Ben-Kiki
On Nov 20, 2007 7:07 PM, Don Stewart <[EMAIL PROTECTED]> wrote: > You can work around it for now with: > > Prelude Text.Printf> printf "%02d\n" 3 >> return () > 03 It may be simpler to specify the type explicitly: Prelude Text.Printf> printf "%02d\n" 3 :: IO () 03 Shachaf ___

Re: [Haskell-cafe] Re: How to abort a computation within Continuation Monad?

2007-11-20 Thread Derek Elkins
On Tue, 2007-11-20 at 13:22 +0200, Gleb Alexeyev wrote: > Dimitry Golubovsky wrote: > > > If I have > > > > callCC $ \exit -> do > > foo > > ... > > > > I cannot jump to `exit' from within foo unless `exit' is given to foo > > as an argument. > > > As Derek Elkins has written, one of the op

Re: [Haskell-cafe] Re: [Haskell] recursive deriving

2007-11-20 Thread Don Stewart
duncan.coutts: > On Tue, 2007-11-20 at 19:18 -0500, Alex Jacobson wrote: > > When you want automated deriving of show/read etc., you need all the > > components of your type also to be instances of show/read but you won't > > want to *require* them to be automatically generated verions. > > > >

[Haskell-cafe] SingHaskell 2007, November 28 2007

2007-11-20 Thread Tom Schrijvers
We're pleased to invite you to SingHaskell: What is SingHaskell? Sing(apore)Haskell is a Haskell (and related languages) meeting in Singapore. The meeting is organized by Tom Schrijvers and Martin Sulzmann and will be hosted by the National University of Singapore. Date and location Sing(a

Re: [Haskell-cafe] SingHaskell 2007, November 28 2007

2007-11-20 Thread Don Stewart
Tom.Schrijvers: > > We're pleased to invite you to SingHaskell: > > What is SingHaskell? > > Sing(apore)Haskell is a Haskell (and related languages) meeting in > Singapore. The meeting is organized by Tom Schrijvers and Martin Sulzmann > and will be hosted by the National University of Singapo

Re: [Haskell-cafe] Tetris

2007-11-20 Thread Jules Bean
Andrew Coppin wrote: GLUT and GLX will also work, and at least the former has a Haskell binding. As far as I'm aware, GLUT isn't available for Windows. (Or rather, I tried it once, and it wasn't happy at all. And after some Google searching, I found it's not around any more.) As far as I