[GHC] #3321: -fhpc assumes original sources relative to the current directory

GHC ghc-devs at haskell.org
Thu Mar 5 13:47:29 UTC 2015


#3321: -fhpc assumes original sources relative to the current directory
-------------------------------------+-------------------------------------
        Reporter:  duncan            |                   Owner:
            Type:  bug               |                  Status:  closed
        Priority:  lowest            |               Milestone:  7.12.1
       Component:  Code Coverage     |                 Version:  6.10.1
      Resolution:  worksforme        |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
 Type of failure:  None/Unknown      |  Unknown/Multiple
      Blocked By:                    |               Test Case:
 Related Tickets:                    |                Blocking:
                                     |  Differential Revisions:
-------------------------------------+-------------------------------------
Changes (by thomie):

 * cc: ttuegel (added)
 * status:  new => closed
 * resolution:   => worksforme


Comment:

 @duncan, @ttuegel: I think this works now (the issue was opened 7 years
 ago). Please reopen if you find ghc still doesn't handle the combination
 of `-fhpc` and `-i` properly.

 {{{
 $ mkdir a
 $ mkdir b

 $ cat > ./a/A.hs <<EOF
 module A where
 import B
 EOF

 $ cat > ./B.hsc <<EOF
 module B where
 EOF

 $ hsc2hs B.hsc -o b/B.hs
 $ cd a
 $ ghc-7.8.4 --make A.hs -i../b -fhpc
 [1 of 2] Compiling B                ( ../b/B.hs, ../b/B.o )
 [2 of 2] Compiling A                ( A.hs, A.o )
 }}}

 Note that we don't get an error message that the source for `B` can not be
 found, with or without `-fhpc`.

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


More information about the ghc-tickets mailing list