[GHC] #13173: Investigate old comment at the top of SrcLoc

GHC ghc-devs at haskell.org
Mon Jan 23 23:58:22 UTC 2017


#13173: Investigate old comment at the top of SrcLoc
-------------------------------------+-------------------------------------
           Reporter:  mpickering     |             Owner:
               Type:  task           |            Status:  new
           Priority:  lowest         |         Milestone:
          Component:  Compiler       |           Version:  8.0.1
           Keywords:  newcomer       |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 There is a comment at the top of `SrcLoc` which says

 {{{
 {-# OPTIONS_GHC -fno-omit-interface-pragmas #-}
   -- Workaround for Trac #5252 crashes the bootstrap compiler without -O
   -- When the earliest compiler we want to boostrap with is
   -- GHC 7.2, we can make RealSrcLoc properly abstract
 }}}

 This is a well-defined small task so I will mark it for newcomers.

 1. Try to work out what the pragma is meant to do by reading #5252
 2. Work out whether we can now make `RealSrcLoc` "properly abstract" (if
 it is not already)
 3. Remove or update this comment and pragma.
 4. Pray it doesn't break the whole compiler.

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


More information about the ghc-tickets mailing list