VEC: fix "defaulting... constraint to type Integer" warning
This commit is contained in:
parent
0dff1174f2
commit
67ef9fa223
@ -27,7 +27,7 @@ getAngle a b =
|
|||||||
|
|
||||||
-- |Get the length of a vector.
|
-- |Get the length of a vector.
|
||||||
vecLength :: Vec -> Double
|
vecLength :: Vec -> Double
|
||||||
vecLength v = sqrt (x^2 + y^2)
|
vecLength v = sqrt (x^(2 :: Int) + y^(2 :: Int))
|
||||||
where
|
where
|
||||||
(x, y) = unr2 v
|
(x, y) = unr2 v
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user