[GHC] #9906: Warning generated by hscpp code have unhelpful file names

GHC ghc-devs at haskell.org
Sun Dec 21 21:18:57 UTC 2014


#9906: Warning generated by hscpp code have unhelpful file names
-------------------------------------+-------------------------------------
              Reporter:  tibbe       |            Owner:
                  Type:  bug         |           Status:  new
              Priority:  normal      |        Milestone:
             Component:  Driver      |          Version:  7.8.3
            Resolution:              |         Keywords:
      Operating System:              |     Architecture:  Unknown/Multiple
  Unknown/Multiple                   |       Difficulty:  Unknown
       Type of failure:              |       Blocked By:
  None/Unknown                       |  Related Tickets:
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------

Comment (by rwbarton):

 Can you put this in a file `A.hs`:

 {{{
 {-# LANGUAGE CPP #-}

 module A where

 #define MESSAGE "Hello, world"

 f :: Bool -> String
 f False = MESSAGE

 main = print (f False)
 }}}

 and run `ghc A -Wall -keep-tmp-files`?

 - Do you get a warning about `A.hs` or some temporary `ghcXXXX_YY.hscpp`
 file? (On Linux using gcc's C preprocessor, the warning is correctly about
 `A.hs`.)

 - In the latter case, could you attach that temporary file here?

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


More information about the ghc-tickets mailing list