You mean something like:
addLengths x y = INCH ((convert x) + (convert y))
There might be more parentheses than required.
The use of the INCH constructor is not a type cast.
You mean something like:
addLengths x y = INCH ((convert x) + (convert y))
There might be more parentheses than required.
The use of the INCH constructor is not a type cast.