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 -
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 ::
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
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