Skip to content

-ddump-json doesn't work with -e

If I create a haskell file called, for example, Main.hs which does not compile and run ghc -ddump-json Main.hs I will get a json formatted output after the error messages. This is a list of the errors, as expected. However if I run runghc -ddump-json Main.hs I get an empty list at the end []

Trac metadata
Trac field Value
Version 8.4.3
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system MacOS X
Architecture
Edited by Matthew Pickering
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information