3 distance (x1,y1) (x2,y2) = let dx = x1-x2
5 in sqrt (dx*dx + dy*dy) print x1
7 5:31-5:35: Constrain Real ((a -> <b> ()) -> ((c -> <d> ()) -> <h> e -> <g> f) -> <j> i) contains free variables not mentioned in the type of the value.
8 5:52-5:57: Constrain Show a contains free variables not mentioned in the type of the value.
9 5:58-5:60: Unification of types failed.