Re: [Haskell-cafe] Ignorant begginer question

2004-12-23 Thread Jon Fairbairn
On 2004-12-23 at 15:09-0200 =?ISO-8859-1?Q?Maur=EDcio?= wrote: Guys, What is wrong with this code? ** import Complex roots :: (Complex, Complex, Complex) - (Complex, Complex); roots (a,b,c) = (x1,x2) where { x1 = (b*b + (sqrt_delta))/(2*a); x2 = (b*b -

Re: [Haskell-cafe] Ignorant begginer question

2004-12-23 Thread Jules Bean
On 23 Dec 2004, at 17:09, MaurĂ­cio wrote: Kind error: `Complex' is not applied to enough type arguments Complex is a type constructor. Complex Double (e.g.) is a type. So try roots :: (Complex Double, Complex Double, Complex Double) - (Complex Double, Complex Double); or indeed roots ::

Re: [Haskell-cafe] Ignorant begginer question

2004-12-23 Thread Stefan Holdermans
MaurĂ­cio, What is wrong with this code? I'm sorry, I don't have time to tell the whole story on kinds right now, so you'll have to do it with this practical solution. Maybe someone else will jump in and give you the grand tour on kinds. Your problem right now is that the type Complex takes

[Haskell-cafe] ANN: MissingH 0.8.0 (Festive Lambda)

2004-12-23 Thread John Goerzen
MissingH 0.8.0 -- the Festive Lambda release New feature summary: * Virtualized I/O system Use familiar functions to work on not just Handles but all sorts of other types, including in-memory buffers. (HVIO module) * Virtualized filesystem Extends the virtual I/O concept to the