in module Vector3 at src/Affine/Data/Vector3.purs:21:1 - 23:63 (line 21, column 1 - line 23, column 63) Could not match type Function (Vector3 (t5 t6)) with type m0 while trying to match type t3 -> t4 with type m0 (t1 a2) while checking that expression \$5 -> case f $5 of f (Vector3 m1 m2 m3) -> (...) m3 has type m0 (t1 a2) in value declaration traversableVector3 where a2 is a rigid type variable bound at (line 0, column 0 - line 0, column 0) m0 is a rigid type variable bound at (line 0, column 0 - line 0, column 0) t1 is an unknown type t3 is an unknown type t4 is an unknown type t5 is an unknown type t6 is an unknown type See https://github.com/purescript/documentation/blob/master/errors/TypesDoNotUnify.md for more information, or to contribute content related to this error.
3
u/daigoro_sensei Dec 28 '22
My bad - copy and paste error. Sequence has too many args. The f is not part of the func sig
1
u/daigoro_sensei Dec 28 '22
in module Vector3
at src/Affine/Data/Vector3.purs:21:1 - 23:63 (line 21, column 1 - line 23, column 63)
Could not match type
Function (Vector3 (t5 t6))
with type
m0
while trying to match type t3 -> t4
with type m0 (t1 a2)
while checking that expression \$5 ->
case f $5 of
f (Vector3 m1 m2 m3) -> (...) m3
has type m0 (t1 a2)
in value declaration traversableVector3
where a2 is a rigid type variable
bound at (line 0, column 0 - line 0, column 0)
m0 is a rigid type variable
bound at (line 0, column 0 - line 0, column 0)
t1 is an unknown type
t3 is an unknown type
t4 is an unknown type
t5 is an unknown type
t6 is an unknown type
See https://github.com/purescript/documentation/blob/master/errors/TypesDoNotUnify.md for more information,
or to contribute content related to this error.
2
u/yukikurage Dec 28 '22
Incidentally, there is a
fast-vectlibrary that manages arrays of the same lengthhttps://pursuit.purescript.org/packages/purescript-fast-vect/1.1.0