|
Hey ppl,
I am trying to build the function to find the area of an orthogonal trapeziod.
The area is found in the following way :
0.5 * base (height1 + height2)
since now i have done this:
area :: Integer -> Integer -> Integer -> Double
area base h1 h2 = 0.5 * base * (h1 + h2)
when i try to compile it, haskell give me the following error.. can pls some1 help me
ERROR file:{Hugs}\packages\hugsbase\Hugs.hs:71 - Type error in explicitly typed binding
*** Term : area
*** Type : Integer -> Integer -> Integer -> Integer
*** Does not match : Integer -> Integer -> Integer -> Double
|