Driver, build process, IOError



About this list Date view Thread view Subject view Author view

Marcin 'Qrczak' Kowalczyk (qrczak@knm.org.pl)
11 Jan 2001 20:31:10 GMT


nhc98 exits with status 0 even if there was a compilation error. It confuses e.g. make. `sudo make install' can turn /dev/null into a normal file, depending on the compiler used to compile nhc (nhc's build process calls $(HC) with -o /dev/null). The current CVS version of nhc tries to compile Int.hs.cpp and Word.hs.cpp with g++ (!). Rules for these files seem to be in a wrong Makefile. FFI in ghc and QForeign (and perhaps future standard FFI) assumes that it is possible to implement the following function: errnoToIOError :: String -- location (function name) -> Errno -- errno -> Maybe Handle -- handle -> Maybe String -- filename -> IOError newtype Errno = Errno CInt so it would be great if nhc exported something in terms of which such errnoToIOError could be defined. -- __("< Marcin Kowalczyk * qrczak@knm.org.pl http://qrczak.ids.net.pl/ \__/ ^^ SYGNATURA ZASTĘPCZA QRCZAK


About this list Date view Thread view Subject view Author view