From d2b51b7ad7efb0dd6ec05ecf8ec31e9601e1d8ad Mon Sep 17 00:00:00 2001 From: hasufell Date: Sun, 14 Dec 2014 18:02:09 +0100 Subject: [PATCH] VEC: simplify type signature of onPT --- Algebra/Vector.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algebra/Vector.hs b/Algebra/Vector.hs index 20d3d73..c0bf19e 100644 --- a/Algebra/Vector.hs +++ b/Algebra/Vector.hs @@ -143,7 +143,7 @@ sortedY xs = -- |Apply a function on the coordinates of a point. -onPT :: ((Double, Double) -> (Double, Double)) -> PT -> PT +onPT :: (Coord -> Coord) -> PT -> PT onPT f = p2 . f . unp2