[Haskell-cafe] Ignorant begginer question

Jules Bean jules at jellybean.co.uk
Thu Dec 23 12:57:21 EST 2004


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 :: (RealFloat t) => (Complex t, Complex t, Complex t) -> (Complex 
t, Complex t);

Jules



More information about the Haskell-Cafe mailing list