
#10869: Option to dump preprocessed source -------------------------------------+------------------------------------- Reporter: phischu | Owner: Type: feature request | Status: closed Priority: low | Milestone: Component: Driver | Version: 7.10.2 Resolution: invalid | Keywords: easy Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by thomie): * status: new => closed * resolution: => invalid Comment: Replying to [comment:2 mpickering]:
I'm fairly sure there is already this option? Maybe it's `-E`..
Exactly, see: https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/modes.html #options-order The option -E runs just the pre-processing passes of the compiler, dumping the result in a file. GHC doesn't run `happy, alex, c2hs or hsc2hs` for you, so I don't think there's anything to do here. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10869#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler