[Haskell-cafe] Newbie question: Why gfoldl has this strange type?

2007-08-30 Thread Rodrigo Geraldo
Hi!

I am a novice in Haskell, and particularly I have interested in generic
programming. This interest motivated me to read paper Scrap your
boilerplate: A practical design pattern for generic programming, but I
didn't understand the type of the function gfoldl, that was present in class
Term (Data). Somebody could help me to understand the type of this function?

Thanks...

Rodrigo
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Newbie question: Why gfoldl has this strange type?

2007-08-30 Thread Ryan Ingram
Just so nobody else has to look it up:
Data.Generics.Basics.gfoldl :: Data a = (c (a - b) - a - c b) - (g - c
g) - a - c a

  -- ryan


On 8/30/07, Rodrigo Geraldo [EMAIL PROTECTED] wrote:

 Hi!

 I am a novice in Haskell, and particularly I have interested in generic
 programming. This interest motivated me to read paper Scrap your
 boilerplate: A practical design pattern for generic programming, but I
 didn't understand the type of the function gfoldl, that was present in class
 Term (Data). Somebody could help me to understand the type of this function?

 Thanks...

 Rodrigo

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Newbie question: Why gfoldl has this strange type?

2007-08-30 Thread Ryan Ingram
Actually, it's a higher rank type and that doesn't show up on hoogle's main
page.

gfoldl :: (forall a b . Data a = c (a - b) - a - c b)
- (forall g . g - c g)
- a
- c a
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe