[Hugs-bugs] Bug evaluating boolean expresion

Pepe Gallardo pepeg at lcc.uma.es
Thu Jan 13 07:02:13 EST 2005


After loading the following script,

b = b' && True
b' = (if True then f else odd) 1
f _ = True


I get the following session:


||   || ||  || ||  || ||__      Hugs 98: Based on the Haskell 98 standard
||___|| ||__|| ||__||  __||     Copyright (c) 1994-2003
||---||         ___||           World Wide Web: http://haskell.org/hugs
||   ||                         Report bugs to: hugs-bugs at haskell.org
||   || Version: November 2003  _______________________________________________

Haskell 98 mode: Restart with command line option -98 to enable extensions

Reading file "c:\program files\hugs98\libraries\Hugs\Prelude.hs":
Reading file "c:\program files\hugs98\libraries\Prelude.hs":
Reading file "C:\Documents and Settings\pepe gallardo\Desktop\pepe.hs":

Hugs session for:
c:\program files\hugs98\libraries\Hugs\Prelude.hs
c:\program files\hugs98\libraries\Prelude.hs
C:\Documents and Settings\pepe gallardo\Desktop\pepe.hs
Type :? for help
Main> b
False :: Bool
Main> b'

Program error: pattern match failure: instShow_v89_v1324 0 b'    


Regards,

Pepe Gallardo

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org//pipermail/hugs-bugs/attachments/20050113/2d505baf/attachment.htm


More information about the Hugs-Bugs mailing list