Question: The following program does not type check. Which explanation is correct? f :: a -> a > a fx y = if x > y
The following program does not type check. Which explanation is correct? f :: a -> a > a fx y = if x > y then x else y You cannot use if-branching in Haskell. You cannot compare values for inequality in Haskell. You cannot compare values of type a for inequality when they are not a member of Ord class. Testing for in equality is impossible without knowing the precise type. None of the above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
