Ticket #5517 (closed bug: invalid)
Dumping core-prep goes to stdout.
ghc -ddump-to-file -ddump-prep -ddump-stg -ddump-cmm --make file.hs -o file
and the stg and cmm stages are correctly dumped to appropriately named files, but the Core Prep output still goes to stdout.
Note: See TracTickets for help on using tickets.