[Haskell-cafe] do construct in wxhaskell

2008-04-12 Thread Jodi-Ann Prince
hi, im working ona project, and im having problem loading some code in wxhaskell: onOpen :: Frame a - TextCtrl b - MenuItem c - StatusField - IO () onOpen f sw mclose status = do mbfname - fileOpenDialog f False True Open image fileTypescase

Re: [Haskell-cafe] I/O system brokenness with named pipes

2008-04-12 Thread Donn Cave
On Apr 11, 2008, at 6:15 AM, John Goerzen wrote: I wonder if we could document this behavior. I rarely use non- blocking I/O from C, and Haskell hides the fact that it's doing this, so the behavior is non-intuitive. I have run into this problem, with Network.Socket (socket). If I

Re: [Haskell-cafe] do construct in wxhaskell

2008-04-12 Thread Abhay Parvate
The indentation is not right; all the statements after the 'do' keyword need to start exactly at the same column. In particular, the 'f' in fileContent and 's' in set should be one below the other. And the 'return ()' also seems to be displaced; perhaps you want that also exactly below the last

[Haskell-cafe] Re: Type families and GADTs in 6.9

2008-04-12 Thread ChrisK
The length calculation looked complicated. So I reformulated it as a comparison using HasIndex. But ghc-6.8.2 was not inferring the recursive constraint on proj, so I split proj into proj_unsafe without the constraint and proj with the constraint checked only once. I also renamed ZT to Nil

Re: [Haskell-cafe] Re: Type families and GADTs in 6.9

2008-04-12 Thread Dan Doel
On Saturday 12 April 2008, ChrisK wrote: The length calculation looked complicated. So I reformulated it as a comparison using HasIndex. But ghc-6.8.2 was not inferring the recursive constraint on proj, so I split proj into proj_unsafe without the constraint and proj with the constraint

[Haskell-cafe] ANNOUNCE: Generic Haskell 1.80 (Emerald)

2008-04-12 Thread Thomas van Noort
Generic Haskell version 1.80 (Emerald) == We are happy to announce the fifth release of Generic Haskell, an extension of Haskell that facilitates generic programming. Generic Haskell includes the following features: * type-indexed

Re: [Haskell-cafe] ANNOUNCE: Generic Haskell 1.80 (Emerald)

2008-04-12 Thread Pablo Nogueira
On 12/04/2008, Thomas van Noort [EMAIL PROTECTED] wrote: Generic Haskell includes the following features: * type-indexed values -- generic functions that can be instantiated on all Haskell data types. ^^^ I have perused the manual and wonder if parametric

Re: [Haskell-cafe] ANNOUNCE: Generic Haskell 1.80 (Emerald)

2008-04-12 Thread Miguel Mitrofanov
Generic Haskell includes the following features: * type-indexed values -- generic functions that can be instantiated on all Haskell data types. How come I haven't ever heard about such a thing?! ___ Haskell-Cafe mailing list

[Haskell-cafe] help understanding pj-lester-book

2008-04-12 Thread minh thu
Hi! I don't understand something in there : pj-lester-book : Implementing functional languages: a tutorial by Simon Peyton Jones and David Lester, available at http://research.microsoft.com/~simonpj/Papers/pj-lester-book/ eval/apply : Making a Fast Curry: Push/Enter vs. Eval/Apply for

Re[2]: [Haskell-cafe] ANNOUNCE: Generic Haskell 1.80 (Emerald)

2008-04-12 Thread Bulat Ziganshin
Hello Miguel, Saturday, April 12, 2008, 5:54:45 PM, you wrote: How come I haven't ever heard about such a thing?! it's an overview of generic haskell programming systems: http://dfa.imn.htwk-leipzig.de/~waldmann/draft/meta-haskell/second.pdf ask here about final version of this paper -- Best

Re[3]: [Haskell-cafe] ANNOUNCE: Generic Haskell 1.80 (Emerald)

2008-04-12 Thread Bulat Ziganshin
Hello Bulat, Saturday, April 12, 2008, 6:10:04 PM, you wrote: it's an overview of generic haskell programming systems: found longer paper myself: Comparing Approaches to Generic Programming in Haskell http://www.cs.uu.nl/~johanj/publications/ComparingGP.pdf -- Best regards, Bulat

Re: [Haskell-cafe] library version problem

2008-04-12 Thread Brent Yorgey
On Fri, Apr 11, 2008 at 4:45 PM, Galchin, Vasili [EMAIL PROTECTED] wrote: Right I am just trying to rebuild the unix package. No matter what version is present in the unix.cabal file, runhaskell Setup.hs configure produces an error concerning unix-2.3.0.0 Have you tried doing a

Re: [Haskell-cafe] more on my ghc package issues

2008-04-12 Thread Brent Yorgey
] [EMAIL PROTECTED]:~/FTP/Haskell/unix-2.2.0.0$ runhaskell Setup.hs configure unknown package: unix-2.3.0.0 I suggested this in my other message, before I saw this one, but just to be sure: does it help to do 'runhaskell Setup.hs clean' before doing the configure step? -Brent

Re: [Haskell-cafe] ANNOUNCE: Generic Haskell 1.80 (Emerald)

2008-04-12 Thread Thomas van Noort
That's a good question. Unfortunately, only Haskell98 types are currently supported by the Generic Haskell compiler. But at first sight, implementing support for parametric types with class constraints is not too hard. Class constraints of a parametric type need to be propagated to its generated

Re: [Haskell-cafe] more on my ghc package issues

2008-04-12 Thread Galchin, Vasili
[EMAIL PROTECTED]:~/FTP/Haskell/unix-2.2.0.0$ runhaskell Setup.hs cleanup unknown package: unix-2.3.0.0 no it doesn't. Vasili On Sat, Apr 12, 2008 at 9:20 AM, Brent Yorgey [EMAIL PROTECTED] wrote: ] [EMAIL PROTECTED]:~/FTP/Haskell/unix-2.2.0.0$ runhaskell Setup.hs configure unknown

Re: [Haskell-cafe] more on my ghc package issues

2008-04-12 Thread Brandon S. Allbery KF8NH
On Apr 12, 2008, at 12:27 , Galchin, Vasili wrote: [EMAIL PROTECTED]:~/FTP/Haskell/unix-2.2.0.0$ runhaskell Setup.hs cleanup unknown package: unix-2.3.0.0 no it doesn't. I suspect the Cabal stuff has a dependency on the unix package (at least on POSIXish systems, probably via the

Re: [Haskell-cafe] more on my ghc package issues

2008-04-12 Thread Galchin, Vasili
I was afraid of the install. Hopefully with the Ubuntu package manager it will be fairly painless. Thanks, Vasili On Sat, Apr 12, 2008 at 11:30 AM, Brandon S. Allbery KF8NH [EMAIL PROTECTED] wrote: On Apr 12, 2008, at 12:27 , Galchin, Vasili wrote: [EMAIL

Re: [Haskell-cafe] ANNOUNCE: Generic Haskell 1.80 (Emerald)

2008-04-12 Thread Pablo Nogueira
On 12/04/2008, Thomas van Noort [EMAIL PROTECTED] wrote: That's a good question. Unfortunately, only Haskell98 types are currently supported by the Generic Haskell compiler. I thought constrained types were Haskell 98, but now I'm in doubt... But at first sight, implementing support for

Re: [Haskell-cafe] ANNOUNCE: Generic Haskell 1.80 (Emerald)

2008-04-12 Thread Thomas van Noort
On 12/04/2008, Thomas van Noort [EMAIL PROTECTED] wrote: That's a good question. Unfortunately, only Haskell98 types are currently supported by the Generic Haskell compiler. I thought constrained types were Haskell 98, but now I'm in doubt... I'm not 100% sure either, but according to the

Re: [Haskell-cafe] ANNOUNCE: Generic Haskell 1.80 (Emerald)

2008-04-12 Thread Brandon S. Allbery KF8NH
On Apr 12, 2008, at 13:33 , Thomas van Noort wrote: On 12/04/2008, Thomas van Noort [EMAIL PROTECTED] wrote: That's a good question. Unfortunately, only Haskell98 types are currently supported by the Generic Haskell compiler. I thought constrained types were Haskell 98, but now I'm in

Re: [Haskell-cafe] install trouble with SDL on win32+cygwin

2008-04-12 Thread Conal Elliott
Now I have sdl-config, but still not able to build. Does *anyone* have the SDL package running on Windows? If not, is GLFW the recommended cross-platform GL toolkit? Thanks, - Conal On Fri, Apr 11, 2008 at 8:55 PM, Luke Palmer [EMAIL PROTECTED] wrote: 2008/4/11 Conal Elliott [EMAIL

Re: [Haskell-cafe] install trouble with SDL on win32+cygwin

2008-04-12 Thread Jake Mcarthur
On Apr 12, 2008, at 9:48 PM, Conal Elliott wrote: If not, is GLFW the recommended cross-platform GL toolkit? Don't forget there is GLUT as well. – Jake___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] help understanding pj-lester-book

2008-04-12 Thread Bernie Pope
On 13/04/2008, at 12:09 AM, minh thu wrote: Hi! I don't understand something in there : pj-lester-book : Implementing functional languages: a tutorial by Simon Peyton Jones and David Lester, available at http://research.microsoft.com/~simonpj/Papers/pj- lester-book/ eval/apply : Making a

Re: [Haskell-cafe] more on my ghc package issues

2008-04-12 Thread Galchin, Vasili
1) I did an Ubuntu purge followed by an install. Afterwards I rebuilt ghc 6.8.2. The same d*mn unknown package: unix-2.3.0.0 message when I try to build unix and bytestring via runhaskell Setup.hs configure. 2) This strongly looks like the package database manager, i.e. ghc-pkg. Source