Static Flags and the GHC API
simonmarhaskell at gmail.com
Wed Mar 7 03:59:20 EST 2007
Judah Jacobson wrote:
> Hi all,
> I've run across an issue in HEAD regarding the GHC API (trac #1181).
> Code that worked under ghc-6.6 (eg,
> http://haskell.org/haskellwiki/GHC/As_a_library) currently panics with
> the message "a static opt was looked at too early!" If you set the
> static flags manually (eg via StaticFlags.parseStaticFlags), the panic
> goes away.
> What is the relationship between the API and static flags supposed to
> be? Should the user be required to set the static flags, or should
> they have some default like in ghc-6.6? If it's the former, then the
> docs should be changed; otherwise, the above trac entry is in fact a
> bug. Either way, I'm willing to look into a fix.
You submitted this ticket, right?
It's probably my fault, but I haven't had time to look into it yet, since we're
focussing most effort on 6.6.1. For now I suggest you use the workaround.
More information about the Cvs-ghc