The code
rayTraceP (p2 (0, 0)) (r2 (1, 0)) (circle 1)
causes the error message
Could not deduce: V a0 ~ V2
from the context: (Traced a, TrailLike a, Transformable a,
V a ~ V2)
bound by the inferred type for ‘it’:
forall a.
(Traced a, TrailLike a, Transformable a, V a ~ V2) =>
Maybe (Point (V a) (N a))
at <interactive>:1:1-44
The type variable ‘a0’ is ambiguous
I can't figure out why this happens. It seems that rayTraceP
is used similarly in the manual.
I use diagrams-cairo-1.4.1 .