[Haskell] Correct interpretation of the curry-howard isomorphism