#4014: hsc2hs cannot open custom template file
---------------------------------+------------------------------------------
    Reporter:  golubovsky        |       Owner:              
        Type:  bug               |      Status:  new         
    Priority:  normal            |   Component:  hsc2hs      
     Version:  6.12.2            |    Keywords:              
          Os:  Unknown/Multiple  |    Testcase:              
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown
       Patch:  0                 |  
---------------------------------+------------------------------------------
 Note: this happens to hsc2hs which comes with binary ghc-6.12.2.

 hsc2hs from darcs.haskell.org seems to not have this issue

 When invoking hsc2hs like this:

 hsc2hs -t /dev/null HS_GLFW_H.hsc

 (or any other filename with -t, the hsc file has its own template), the
 output follows:

 hsc2hs: : openBinaryFile: does not exist (No such file or directory)

 Note the second colon: filename should be there, and it is empty.

 strace log shows that there is an attempt to open a file with empty name
 (ca. line 534):

 open("", O_RDONLY|O_NOCTTY|O_NONBLOCK|O_LARGEFILE) = -1 ENOENT (No such
 file or directory)

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4014>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to