Fix panic when running "ghc -H"; trac #3364
authorIan Lynagh <igloo@earth.li>
Thu, 24 Jun 2010 23:40:11 +0000 (23:40 +0000)
committerIan Lynagh <igloo@earth.li>
Thu, 24 Jun 2010 23:40:11 +0000 (23:40 +0000)
commit888b4e89a4a4e3f39a3ba567c796b3a79b63bf61
tree03f9ec255764adc72bb218a34636131b186b171d
parent4738e101938db94cbe8444bc42f59d29b1b815c6
Fix panic when running "ghc -H"; trac #3364
The problem is that showing SDoc's looks at the static flags global
variables, but those are panics while we are parsing the static flags.
We work around this by explicitly using a fixed prettyprinter style.
compiler/main/CmdLineParser.hs
compiler/utils/Outputable.lhs