[GHC] #7859: runghc should give an error when the path to ghc is invalid

GHC cvs-ghc at haskell.org
Tue Apr 23 23:11:39 CEST 2013


#7859: runghc should give an error when the path to ghc is invalid
----------------------------------------------+-----------------------------
Reporter:  monoidal                           |          Owner:                  
    Type:  bug                                |         Status:  new             
Priority:  normal                             |      Component:  None            
 Version:  7.6.3                              |       Keywords:                  
      Os:  Unknown/Multiple                   |   Architecture:  Unknown/Multiple
 Failure:  Incorrect warning at compile-time  |      Blockedby:                  
Blocking:                                     |        Related:                  
----------------------------------------------+-----------------------------
 runghc has a -f option which allows to specify the path to GHC. However,
 it uses `rawSystem` and if the path is incorrect, we only get a nonzero
 exit code. For example, attempting to use "ghc -fdefer-type-errors X.hs"
 gives absolutely no output.

 Attached patch uses `findExecutable` and gives an error message if the
 executable is not found. This is not the ideal solution, but I think it's
 better than the current state.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7859>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the ghc-tickets mailing list