hsc2hs cannot open custom template file
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)
Trac metadata
Trac field | Value |
---|---|
Version | 6.12.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | hsc2hs |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |