A bug in hugs

Deling Ren rende@cs.orst.edu
Fri, 8 Feb 2002 02:07:27 -0800


This is a multi-part message in MIME format.

------=_NextPart_000_0007_01C1B045.5B3ED140
Content-Type: text/plain;
	charset="gb2312"
Content-Transfer-Encoding: quoted-printable

Hugs version: Dec 2001. Platform: Windows. Both WinHugs and command line =
hugs have the same bug.

start hugs with -98 option and try the following program:

class Monad m =3D> ExMonad where
    raise :: String-> m a

instead of reporting an error, an internal error is raised:

INTERNAL ERROR: inheritFundeps - predicate failed to match it's own =
head!

Regards.
Deling

------=_NextPart_000_0007_01C1B045.5B3ED140
Content-Type: text/html;
	charset="gb2312"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dgb2312">
<META content=3D"MSHTML 6.00.2712.300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hugs version: Dec 2001. Platform: =
Windows. Both=20
WinHugs and command line hugs have the same bug.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>start hugs with -98 option and try the =
following=20
program:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>class Monad m =3D&gt; ExMonad=20
where<BR>&nbsp;&nbsp;&nbsp; raise :: String-&gt; m a</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>instead of reporting an error, an =
internal error is=20
raised:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>INTERNAL ERROR: inheritFundeps - =
predicate failed=20
to match it's own head!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Regards.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Deling</FONT></DIV></BODY></HTML>

------=_NextPart_000_0007_01C1B045.5B3ED140--