Error de sintaxis de Haskell para donde declaración [duplicada]
Esta pregunta ya tiene una respuesta aquí:
¿Por qué no debería mezclar tabulaciones y espacios? 1 respuestaEstoy escribiendo un código Haskell para aprender el idioma, y me he encontrado con el error de sintaxis:
Vec2.hs:33:27: parse error on input '='
El código que he escrito aquí está abajo. El error está apuntando al segundo término envec2Normalize
iLength = ...
No veo el error de sintaxis
-- Get the inverse length of v and multiply the components by it
-- Resulting in the normalized form of v
vec2Normalize :: Vec2 -> Vec2
vec2Normalize v@(x,y) = (x * iLength, y * iLength)
where length = vec2Length v
iLength = if length == 0 then 1 else (1 / length)