
6 Feb
2007
6 Feb
'07
5:08 a.m.
Can anyone explain why Shape.Polygon would have a different type to (Shape).Polygon, I thought the brackets would be redundant. Here is the output from a Hugs session
Animation> :v -- Hugs Version 20050113 Animation> :t Shape Shape :: Shape -> Region Animation> :t Polygon Polygon :: [Vertex] -> Shape Animation> :t (Shape.Polygon) Polygon :: [Vertex] -> Shape Animation> :t ((Shape).Polygon) Shape . Polygon :: [Vertex] -> Region Animation> :t Shape.(Polygon) Shape . Polygon :: [Vertex] -> Region
Shape.Polygon is a qualified name, and you probably have a module called Shape. Use spaces around the dot ... Cheers, Andres