I made this function definition equal, which checks to see if all the elements of a list are equal.
iguais :: [Float] -> Bool
iguais [x,y] = x == y
iguais (h:t) = h == (head t)
However, the result is not what you want. Can you tell what the error is?