Skip to content

+RTS options should warn on the compiler

<tcr> ghc --make Main.hs +RTS -xc
<tcr> doesn't work, I must be misunderstanding something

is one of the most common misunderstandings on #haskell. Would it be feasable to have GHC generate a warning if passed a +RTS option?

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