The problem is that your program has a type which is not acceptable
to the dynamic typing system in runhugs. From memory, runhugs
expects something of type "IO ()" but exitFailure has type
"ExitCode -> IO a". Assuming that you're supplying an
ExitCode, the problem is that the dynamic typing system
doesn't understand that "IO a" is as good as "IO Int". Add
a type signature to your program and your problems should
go away.
Alastair Reid (borrowing Susanna's email account while in Berlin)
Mircea Draghicescu wrote:
> Using "exitFailure" from the System library causes the error message
>
> runhugs: lookupName: can't create Typeable instance
>
> Thanks.
>
> Mircea