[Haskell-cafe] Shiqi has Tagged you! :)

2007-04-06 Thread Shiqi Cao
Title: Shiqi has Tagged you! :) Shiqi C, 24 Canada Shiqi C has added you as a friend Is Shiqi C your friend? Please respond or Shiqi may think you said no :( Click here to unsubscribe from Tagged, P.O. Box

[Haskell-cafe] How can I refactor this code?

2007-04-06 Thread Joel Reymont
http://hpaste.org/127 It looks quite ugly to me so any help is appreciated! Thanks in advance, Joel -- http://wagerlabs.com/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Re: How can I refactor this code?

2007-04-06 Thread Joel Reymont
That would be http://hpaste.org/1278, my apologies! -- http://wagerlabs.com/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Trouble trying to find packages for ubuntu linux

2007-04-06 Thread Thomas Hartman
I did actually get into some (not serious) trouble running this install them all and let god sort them out approach. There were complaints about some haskell gtk packages which hung during the apt-get command, which I had to end with ctrl-c. Thereafter, these packages would cause error messages

[Haskell-cafe] Building c2hs on a mac

2007-04-06 Thread manu
Hello, I'd be interested to know if anybody had managed to build c2hs on a mac recently because I've tried the current darcs version, c2hs-0.14.5, c2hs-0.14.3, c2hs-0.13.6, etc... to no avail I get this with c2hs-0.14.5 : ./Setup.hs configure ./Setup.hs:11:57: Couldn't match expected

[Haskell-cafe] Yi pre-release

2007-04-06 Thread Jean-Philippe Bernardy
Hello folks, More that two years after the 0.1.0 release, I would like to attract people's attention to recent developments on the Yi editor. This preview release is an attempt to gather more users, testers and hopefully contributors for an upcoming stable release. Yi is a text editor written

Re: [Haskell-cafe] Yi pre-release

2007-04-06 Thread allan
Patches, comments, criticism welcome... as always! -- Jean-Philippe Bernardy I have a question, my compilation gets stuck on configure, it can't find package FilePath =1.0 Which file path library is this? There are a few around, but I can't seem to find one with a version number greater

Re: [Haskell-cafe] Yi pre-release

2007-04-06 Thread Neil Mitchell
Hi Allan, http://darcs.haskell.org/packages/filepath/ It's not been released yet, but it will be bundled with GHC 6.6.1. Thanks Neil On 4/6/07, allan [EMAIL PROTECTED] wrote: Patches, comments, criticism welcome... as always! -- Jean-Philippe Bernardy I have a question, my

Re: [Haskell-cafe] Yi pre-release

2007-04-06 Thread Michael Walter
Hi, where would you get sourceview=0.9.11 for Win32? Regards, Michael On 4/6/07, Neil Mitchell [EMAIL PROTECTED] wrote: Hi Allan, http://darcs.haskell.org/packages/filepath/ It's not been released yet, but it will be bundled with GHC 6.6.1. Thanks Neil On 4/6/07, allan [EMAIL PROTECTED]

[Haskell-cafe] Type error

2007-04-06 Thread Alfonso Acosta
Hi all, I have a type problem in my code which I dont know how to solve (and I'm not really sure why is caused). I have made a simplified example, can anyone have a look at it? Thanks in advance, The error is: Example.hs:24:47: Ambiguous type variable `a' in the constraint:

Re: [Haskell-cafe] Type error

2007-04-06 Thread Chris Kuklewicz
I'll explain a little bit. Consider (show (read 13)). The compiler has no way to know what the type a produced by read should be. It must be an instance of (Read a) and (Show a), but the compiler cannot generate any actual code! Alfonso Acosta wrote: Hi all, I have a type problem in my

Re: [Haskell-cafe] Yi pre-release

2007-04-06 Thread Duncan Coutts
On Fri, 2007-04-06 at 18:03 +0200, Michael Walter wrote: Hi, where would you get sourceview=0.9.11 for Win32? You can build Gtk2Hs from source with the appropriate C libraries installed or you can wait for me to do the same. It's on my TODO list but probably will not get done for at least

[Haskell-cafe] Re: Yi pre-release

2007-04-06 Thread Jean-Philippe Bernardy
Michael Walter michael.walter at gmail.com writes: where would you get sourceview=0.9.11 for Win32? I guess http://haskell.org/gtk2hs/download/ I haven't tried myself, being a linux user. Maybe Duncan Coutts can tell you more, should it fail. Cheers, JP.

Re: [Haskell-cafe] Type error

2007-04-06 Thread Alfonso Acosta
Thanks for your answer, The functional dependencies solution doesn't help because my instances cannot satisfy them (there are various DestPort and SourcePort instances with are required to support various HDSignals). I tried with existentials, but I'm still getting an error (I'm not that

[Haskell-cafe] Re: `Expect'-like lazy reading/Parsec matching on TCP sockets

2007-04-06 Thread Scott Bell
Ooops! It seems that this doesn't behave well with a -threaded RTS. I get an EOF on handles that I know for a fact shouldn't be receiving them. It still works well without -threaded, but does anyone know why I'm getting this behavior? hGetContentsTimeout :: Handle - Int - IO String

Re[2]: [Haskell-cafe] Type error

2007-04-06 Thread Bulat Ziganshin
Hello Alfonso, Friday, April 6, 2007, 9:33:45 PM, you wrote: (I'm not that comfortable working with existentials yet :)). probably you may benefit from looking at http://haskell.org/haskellwiki/OOP_vs_type_classes and original Wadler's paper mentioned there -- Best regards, Bulat

Re: [Haskell-cafe] Re: `Expect'-like lazy reading/Parsec matching on TCP sockets

2007-04-06 Thread Bulat Ziganshin
Hello Scott, Friday, April 6, 2007, 11:44:01 PM, you wrote: you should write compiler version and OS for such problems. if it's 6.6 and Win, try to upgrade to current STABLE build: smth like http://www.haskell.org/ghc/dist/stable/dist/ghc-6.6.20061207-i386-unknown-mingw32.tar.gz but newer (this