type inference bug

Mark Tullsen <[email protected]>
Newsgroups gmane.comp.lang.haskell.hugs.bugs
Organization Oregon Graduate Institute
Message-ID <[email protected]>
Here's a (serious) bug in the type-inferencer of the November 2002 Hugs (tested
using hugs98-Nov2002-rh7.3-1.i386.rpm):

   data T a b = T {f1 :: a, f2 :: b}
   updateF1 x t = t{f1 = x}

   the type inferred for updateF1:
     observed behavior:
       updateF1 :: a -> T b c -> T a d
     expected behavior:
       updateF1 :: a -> T b c -> T a c

FYI, this bug didn't exist in the Dec 2001 version.

- Mark
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.