[Haskell-beginners] Compilation error

Daniel Seidel ds at iai.uni-bonn.de
Thu Jul 21 13:26:23 CEST 2011


Hi Mukesh,

it seems like in

> 
> main = do 
>         let l =   solve . convexHull . format . map  ( map readInt .
> words ) . tail . lines
> printf "%.2f\n"  l   
> return () 
> 

a String argument for l is missing, because 
solve . convexHull . format . map  ( map readInt . words ) . tail .
lines
has type String -> Double and for String -> Double there is no instance
to print it, that's what the error message tells.

Cheers,

Daniel.
> 




More information about the Beginners mailing list