[GHC] #15369: GHCi doesn't honor ':set +c' when loading, for a second time, a file that has .hi/.o

GHC ghc-devs at haskell.org
Sat Dec 8 05:04:45 UTC 2018


#15369: GHCi doesn't honor ':set +c' when loading, for a second time, a file that
has .hi/.o
-------------------------------------+-------------------------------------
        Reporter:  dramforever       |                Owner:  RolandSenn
            Type:  bug               |               Status:  patch
        Priority:  normal            |            Milestone:  8.8.1
       Component:  Compiler          |              Version:  8.4.3
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:  make test
                                     |  TEST=T15369
      Blocked By:                    |             Blocking:
 Related Tickets:  #15085            |  Differential Rev(s):  Phab:D5376
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Ben Gamari <ben@…>):

 In [changeset:"57c9b1ae4cafd0ee763451f2d4bc10220eef9689/ghc"
 57c9b1ae/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="57c9b1ae4cafd0ee763451f2d4bc10220eef9689"
 Fix #15369: GHCi doesn't honor :set +c when loading for a second time

 The decision to (re)collect the type info for a (re)loaded module is
 now taken only by comparing the file timestamps of the .hs file of the
 module. (Or form the .o file if the .hs file is missing).
 If the file timestamp changes, we (re)collect the type info.
 The timestamp of the processing time of the last collect is no longer
 used.

 Test Plan: make test TEST=T15369

 Reviewers: alanz, hvr, monoidal, osa1, thomie, bgamari, tdammers

 Reviewed By: tdammers

 Subscribers: rwbarton, carter

 GHC Trac Issues: #15369

 Differential Revision: https://phabricator.haskell.org/D5376
 }}}

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


More information about the ghc-tickets mailing list