Re: [Haskell-cafe] How to debug GHC

2005-04-27 Thread Bernard Pope
On Wed, 2005-04-27 at 07:45 +0200, Ketil Malde wrote: [I want to know] who called who all the way from main to head, because the key function is going to be one somewhere in the middle. Perhaps. I am told stack backtraces are difficult with non-strict semantics. This is true, at least

[Haskell-cafe] Function composition confusion

2005-04-27 Thread Anuj Seth
Hi, Excuse the newbie'ness of my question. Saw an example in Two Dozen Questions by Rexx Page. blocks blockSize = takeWhile ( not . null ) . map fst . iterate (splitAt blockSize . snd) . splitAt blockSize What is the meaning of the . operators outside the parentheses ? Thsi

RE: [Haskell-cafe] Function composition confusion

2005-04-27 Thread Anuj Seth
Thanks, that clears it up I was thinking that the output of (splitAt blockSize) would get piped to (splitAt blockSize . snd). Did not realize it goes to the whole iterate part. -Original Message- From: Henning Thielemann [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 27, 2005 4:37 PM

Re: [Haskell-cafe] Function composition confusion

2005-04-27 Thread Benjamin Franksen
On Wednesday 27 April 2005 15:46, Anuj Seth wrote: Thanks, that clears it up I was thinking that the output of (splitAt blockSize) would get piped to (splitAt blockSize . snd). Did not realize it goes to the whole iterate part. It is useful to keep in mind that function application ('f x') is

[Haskell-cafe] Ambiguous type signature in class declaration

2005-04-27 Thread Bo Herlin
Hi I am trying to make a class like this: class CRank a b where rank :: a - b - Maybe Integer -- Nothing means b is out of range or badly constructed unrank :: a - Integer - Maybe b -- Nothing means rank is out of range count :: a - Maybe Integer -- Nothing means infinity with possible

Re: [Haskell-cafe] Ambiguous type signature in class declaration

2005-04-27 Thread Benjamin Franksen
On Wednesday 27 April 2005 19:12, Bo Herlin wrote: I am trying to make a class like this: class CRank a b where rank :: a - b - Maybe Integer -- Nothing means b is out of range or badly constructed unrank :: a - Integer - Maybe b -- Nothing means rank is out of range count :: a

Re: [Haskell-cafe] Ambiguous type signature in class declaration

2005-04-27 Thread Benjamin Franksen
On Wednesday 27 April 2005 22:12, Benjamin Franksen wrote: Another trick is to split the class: class Countable a where count :: a - Maybe Integer -- Nothing means infinity class Countable a = CRank a b where rank :: ... ... This solution has similar disadvantages as the

[Haskell-cafe] fptools in darcs now available

2005-04-27 Thread John Goerzen
Hello, I am pleased to announce that I have used tailor.py to successfully convert the entire history of fptools HEAD branch, dating back to 1996, from CVS to darcs. For those of you that don't know, fptools represents the development area for the GHC Haskell compiler as well as many other

Re: [Haskell-cafe] Ambiguous type signature in class declaration

2005-04-27 Thread Bo Herlin
Ok, i got it now, thanks for the help. /Bo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe