[GHC] #365: GHC dies silently with faulty preprocessor

GHC ghc-devs at haskell.org
Sat Sep 12 16:49:27 UTC 2015


#365: GHC dies silently with faulty preprocessor
-------------------------------------+-------------------------------------
        Reporter:  josefs            |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:
       Component:  Compiler          |                 Version:  7.11
      Resolution:                    |                Keywords:
Operating System:  Windows           |            Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:                    |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by thomie):

 Oh, Phyx on #ghc says `-pgmF` requires a `.bat` file. Sure enough, then it
 works:

 {{{
 $ echo 'cat %2 > %3' > preprocess.bat
 $ chmod +x preprocess.bat
 $ ghc -F -pgmF ./preprocess.bat hello.hs
 C:\msys64\tmp\test>cat "hello.hs"
 1>"C:\msys64\tmp\ghc1556_0\ghc1556_1.hspp"
 $ echo $?
 0
 }}}

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


More information about the ghc-tickets mailing list