[GHC] #14979: Issue warning is -main-is is used in OPTIONS pragma

GHC ghc-devs at haskell.org
Mon Mar 26 21:58:13 UTC 2018


#14979: Issue warning is -main-is is used in OPTIONS pragma
-------------------------------------+-------------------------------------
           Reporter:  bgamari        |             Owner:  (none)
               Type:  feature        |            Status:  new
  request                            |
           Priority:  normal         |         Milestone:
          Component:  Compiler       |           Version:  8.2.2
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:  #2710
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 #2710 notes that `-main-is` does not currently work in an `OPTIONS`
 pragma. However, in thomie and my opinion `-main-is`, `-rtsopts`, the
 various way options (e.g. `-debug`, `-prof`, etc.), etc. have no sensible
 interpretation in this context.

 I suggest that they should be ignored and we should throw a warning when
 they are encountered.

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14979>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list