Add options to select GHCi prompt type errors
This SO post implicitly suggests some extra options for reporting type errors for expressions typed into GHCi. When GHCi reports a type error for an expression e typed at the prompt, it has effectively failed to check void e :: IO () and print e :: IO (). It always reports the error for the latter. There are three things a user may want, and I think options should control which ones are shown:
- Why didn't
void e :: IO ()check? - Why didn't
print e :: IO ()check? - If any type could be inferred for
e, what was it?
Edited by David Feuer