Re[2]: [Haskell-cafe] Great language shootout: reloaded

2006-11-11 Thread Bulat Ziganshin
Hello Sebastian, Saturday, November 11, 2006, 3:51:09 AM, you wrote: Meassuring lines of code is certainly not perfect, but IMO it's a lot more useful as a metric then gzipped bytes. why they don't use word count?? -- Best regards, Bulatmailto:[EMAIL

Re: [Haskell-cafe] Great language shootout: reloaded

2006-11-11 Thread Bulat Ziganshin
Hello Isaac, Saturday, November 11, 2006, 5:56:57 AM, you wrote: 2) Some Haskell programs were pushed into 'interesting alternative implementations' because they'd strayed so far from the spirit of the benchmark. (It takes a while for people to notice and complain, but eventually they do.)

[Haskell-cafe] Re: aggressiveness of functional dependencies

2006-11-11 Thread apfelmus
Nicolas Frisby wrote: First off, thanks for the reply. I am accustomed to GHC ignoring instance contexts as you mentioned. It's the mostly part that I'm curious about: mostly implies there's some phases that don't ignore context. Is that only the checking the type of the method definitions

Re: [wxhaskell-users] [Haskell-cafe] Announcement: new maintainers forr wxHaskell

2006-11-11 Thread Eric Y. Kow
On Tue, Nov 07, 2006 at 23:26:40 +0100, Henk-Jan van Tuyl wrote: I suggest [EMAIL PROTECTED], the GUI task force mailing list; nothing is going on there at the moment, but it seems the most appropriate list. Hmm... I guess I'm happy just using the wxhaskell-users list for now, but if we do

[Haskell-cafe] Why instances can't be hidden (was: non-total operator precedence order)

2006-11-11 Thread Brian Hulley
Benjamin Franksen wrote: Henning Thielemann wrote: On Fri, 10 Nov 2006, Benjamin Franksen wrote: Although one could view this as a bug in the offending module it makes me somewhat uneasy that one additional import can have such a drastic effect on the code in a module /even if you don't use

[Haskell-cafe] (twice head) (twice tail)

2006-11-11 Thread Greg Buchholz
Over on comp.lang.functional ( http://xrl.us/s6kv ), Toby Kelsey is wondering about writing a function twice that applies a function to an argument two times... twice' :: (a - a) - a - a twice' f x = f (f x) ...that works for things like twice succ 0 and twice tail [1,2,3], but the type

[Haskell-cafe] Great language shootout: reloaded

2006-11-11 Thread Isaac Gouy
Donald Bruce Stewart wrote: -snip- I agree. Breaking the rules was mainly the reason for the drop. Entries like chameneos and fasta. Also, the other language teams kept improving things. Yes, I missed that opportunity for listing things in threes ;-) Over the year improved programs were

[Haskell-cafe] Section Syntax Errors

2006-11-11 Thread Aditya Siram
Hi all, I am learning about sections and currying from SOE. There are three functions below. The first is from SOE and the other two are my own practice functions. Why does the third function fail? --Test for negative numbers (from SOE pg 109). This works posInts :: [Integer] - [Bool] posInts

Re: [Haskell-cafe] Section Syntax Errors

2006-11-11 Thread Neil Mitchell
Hi Deech, Trying some things in Hugs: Hugs :t (+1) flip (+) 1 :: Num a = a - a Hugs :t (0) flip () 0 :: (Num a, Ord a) = a - Bool Hugs :t (-1) -1 :: Num a = a If you see, Haskell interprets the first two as sections, but the last one is treated as a unary minus, inside brackets - i.e. as

Re: [Haskell-cafe] Section Syntax Errors

2006-11-11 Thread David House
On 11/11/06, Aditya Siram [EMAIL PROTECTED] wrote: subOne :: [Integer] - [Integer] subOne = map (- 1) The short answer is that this is interpreted as negative unity, rather than a section of binary minus. There are two common workarounds: subOne = map (subtract 1) subOne = map (+ (-1))

Re: [Haskell-cafe] Re: Livecoding music in Haskell

2006-11-11 Thread Henning Thielemann
On Sat, 11 Nov 2006, Rohan Drape wrote: When I run this, then SuperCollider emits the error FAILURE ew Command not found Do you use some new feature? No, however you may need to run darcs update, there was an error in the OSC bundle encoder that I located writing that example: