nobsun
言語拡張 CPP を指定したソースコードの確認のために、CPPの処理だけが済んだ段階のソースコードを出力したいと思うのですが、ghc オプション指定でできないものでしょうか?
The phase at which to STOP processing is determined by a command-line
option:
-E stop after generating preprocessed, de-litted Haskell
(used in conjunction with -cpp)-E オプションで C-preprocess までで処理が止まって .hspp ファイルが吐かれるので,ghc -E Foo.hs cat Foo.hspp