Haskell: Multiple definiton of data : **data Ponto = Cartesiano Double Double | Polar Double Double
deriving (Show,Eq)**
I'm doing a Work for a class and I have to use the definion above to do a function that calculates the distance of a point to the vertical axis, the coordinates can be as x and y or r and angle using the data type above.
Can you help me understand how I use this type of definion in Haskell?
Thank you and sorry but my english isn't the best!