Anyone who thinks that Hugs' diagnostic messages are unsatisfactory
should try the following snippet with GHC:        :-)

-----------------------------------------------
module Foo where
import Posix(fdToHandle)
bar = fdToHandle ``0''    -- ``0'' should be: (intToFd ``0'')
-----------------------------------------------
panne@liesl:~ > ghc -fglasgow-exts -syslib posix -c Foo.hs

panic! (the `impossible' happened):
        ERROR: ``literal-literal'' not a single-constructor type:  0; type: 
PosixUtil.Fd{-rD4,j-}

Please report it as a compiler bug to [EMAIL PROTECTED]
-----------------------------------------------

In the real program the ``0'' was actually something more complicated,
of course.

Cheers,
   Sven

P.S.: The "lookupBindC:no info!"-bug from Feb 22nd is still in
yesterday's GHC...   :-(

-- 
Sven Panne                                        Tel.: +49/89/2178-2235
LMU, Institut fuer Informatik                     FAX : +49/89/2178-2211
LFE Programmier- und Modellierungssprachen              Oettingenstr. 67
mailto:[EMAIL PROTECTED]            D-80538 Muenchen
http://www.pms.informatik.uni-muenchen.de/mitarbeiter/panne

Reply via email to