问题
Haskell tools compiled in the upgraded environment fail with this message, regardless of command line parameters.
回答1:
As it turns out, RTS options can pose a security issue, so they can be disabled in GHC7. Then, when a RTS option is passed to such a program, it fails.
The problem was that I had GHCRTS environment variable set, which is added to RTS options of all Haskell programs. Clearing this environment variable solved the issue.
来源:https://stackoverflow.com/questions/12133000/after-upgrading-to-ghc7-all-programs-suddenly-fail-saying-most-rts-options-are