Is there a way, either standard, or a clever hack, to make invoking GHC on a file only run the type-checker? E.g.
$ ghc --just-check-the-types x.hs
$
No output files, no .hi or .o, etc. Don't want to/can't use the GHC API. Just talking about the command-line program, here.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…