[GHC] #1232: generalise runhaskell to support arbitrary file names, not just those with .{l}hs extensions

GHC trac at galois.com
Fri Mar 30 06:53:47 EDT 2007


#1232: generalise runhaskell to support arbitrary file names, not just those with
.{l}hs extensions
-----------------------------+----------------------------------------------
 Reporter:  Frederik         |          Owner:             
     Type:  feature request  |         Status:  new        
 Priority:  normal           |      Milestone:  6.8        
Component:  Compiler         |        Version:  6.6        
 Severity:  normal           |     Resolution:             
 Keywords:  runhaskell       |     Difficulty:  Easy (1 hr)
 Testcase:                   |   Architecture:  Multiple   
       Os:  Unknown          |  
-----------------------------+----------------------------------------------
Comment (by panne):

 I don't agree with the .lhs default, and the argument that non-literate
 standard Haskell scripts can't start with a #! line is invalid: The whole
 point of the #! machinery is that the "real stuff" starts on the next
 line, and runhaskell should be able to figure out what it is (.hs or
 .lhs). Wrapping short scripts in TeX's \begin/\end or forcing users to
 write Bird tracks is a bit silly...

 Furthermore, I agree that the corresponding Haskell implementation should
 be used, and not a random one in the PATH.

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


More information about the Glasgow-haskell-bugs mailing list