programming-in-haskell
programming-in-haskell copied to clipboard
Ch. 12 Ex. 7
I don't think your solution is correct. For example, these two equations
_ <*> Val x = Val x
Val x <*> _ = Val x
Give different results for the expression Val 2 <*> Val 3
.