[GHC] #16260: Use of plugins causes different SafeHaskellMode returned for the module (was: Use of plugins causes -XSafe to fail)

GHC ghc-devs at haskell.org
Thu Jan 31 21:16:03 UTC 2019


#16260: Use of plugins causes different SafeHaskellMode returned for the module
-------------------------------------+-------------------------------------
        Reporter:  watashi           |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.7
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  GHC rejects       |  Unknown/Multiple
  valid program                      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by watashi):

 * owner:  watashi => (none)
 * status:  closed => new
 * resolution:  fixed =>


Comment:

 Your reasoning is very fair.

 If I understand correctly, `-fno-safe-haskell` works on the depender side
 and here we want to get the original `SafeHaskellMode` in the dependee
 side. So this will be something like `Sf_PluginUnsafe SafeHaskellMode`
 instead and it will definitely unblock me.

 Alternatively, how about an explicit flag (`-fplugin-safe-ignore`?) that
 will turn off `mark_plugin_unsafe`? As an explicit flag is passed, we
 assume users have clear idea what they are doing.

 Let me know what do you think.

 Reopen the ticket before we actually address this.

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


More information about the ghc-tickets mailing list