Ticket #1336 (closed feature request: wontfix)

Opened 6 years ago

Last modified 5 years ago

+RTS options should warn on the compiler

Reported by: sorear Owned by:
Priority: normal Milestone:
Component: Compiler Version: 6.6.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

<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?

Change History

Changed 6 years ago by simonpj

The problem here is that GHC *is* itself a GHC-compiled Haskell program, and so if you want to (say) change the heap size in which GHC itself runs, then the +RTS thing is the right thing to do. Generating a warning seems odd. And I think it'd be tricky, becuase the +RTS stuff is intercepted by the runtime system before the Haskell program ever gets to see it.

I can see the problem, but I'm not sure how to fix it!

Simon

Changed 6 years ago by igloo

  • status changed from new to closed
  • resolution set to wontfix

Like Simon says, there isn't really anything we can do here, I'm afraid.

Changed 5 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple

Changed 5 years ago by simonmar

  • os changed from Unknown to Unknown/Multiple
Note: See TracTickets for help on using tickets.