[GHC] #8198: One-shot mode is buggy w.r.t. hs-boot files

GHC ghc-devs at haskell.org
Fri Aug 30 00:48:00 UTC 2013


#8198: One-shot mode is buggy w.r.t. hs-boot files
-------------------------------------------------+-------------------------
        Reporter:  parcs                         |            Owner:  parcs
            Type:  bug                           |           Status:  new
        Priority:  normal                        |        Milestone:  7.8.1
       Component:  Driver                        |          Version:  7.7
      Resolution:                                |         Keywords:
Operating System:  Unknown/Multiple              |     Architecture:
 Type of failure:  Incorrect warning at          |  Unknown/Multiple
  compile-time                                   |       Difficulty:
       Test Case:                                |  Unknown
        Blocking:                                |       Blocked By:
                                                 |  Related Tickets:
-------------------------------------------------+-------------------------
Changes (by parcs):

 * owner:   => parcs


Comment:

 The problem is that when compiling `A.hs-boot`, module A's hs-boot file is
 added to the finder cache instead of its corresponding source file. So
 when the interface file for module A is requested, the finder cache
 returns "A.hi-boot". It then appends "-boot" to the end of that to get "A
 .hi-boot-boot".

 Since it is assumed that every home module location in the finder cache
 corresponds to a source file, the correct solution is to always add the
 module's source-file location to the finder cache, even if the current
 file happens to be an hs-boot file.

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




More information about the ghc-tickets mailing list