Bug evaluating boolean expresion

"Pepe Gallardo" <[email protected]>
Newsgroups gmane.comp.lang.haskell.hugs.bugs
Message-ID <004f01c4f967$b8133230$746cd696@pepeg>
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: [email protected]
||   || 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

_______________________________________________
Hugs-Bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/hugs-bugs
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.