I've got this error Couldn't match expected type Double -> (Double, Double, Double)' with actual type
(Double, Double, Double)
which I don't know how to fix, I've been struggling with this for some days with different errors and now I think I have it, just need that to get fixed, this is my code:
terna :: Double -> Double -> (Double, Double, Double)
terna (x, y) = (x, y, (sqrt ((x*x)+ (y*y))))
It's simple yet I'm just starting with Haskell and find many rocks on my path due to being new to functional programming. Thank you.