Is now fixed. Thx for the report. Was due to a bug in
the interpreter's code generator pertaining to spotting
nullary top-level constructors (was fooled by the tyvar
on S). This fix will ship in 5.02.
J
| -----Original Message-----
| From: Mark Tehver [mailto:[EMAIL PROTECTED]]
| Sent: Thursday, July 19, 2001 11:03 PM
| To: [EMAIL PROTECTED]
| Subject: <<loop>> in GHC 5.01 "Zarjaz"
|
|
| Hi,
|
| The following code gives *** Exception: <<loop>> when I
| execute main under ghci (using GHC 5.01 "Zarjaz"):
|
| ---- file Y.hs
|
| module Y (test, T) where
|
| data T k = T | S k deriving Show
|
| test :: T k
| test = T
|
| ---- file Main.hs
|
| module Main (main) where
|
| import Y
|
| main :: IO ()
| main = putStrLn $ show (test :: T Int)
|
|
| But it works fine when I compile this program into
| stand-alone executable using the same compiler. It also
| worked under Linux when I used GHC 5.00 with interpreter.
|
| Best regards,
| Mark
|
|
| _______________________________________________
| Glasgow-haskell-bugs mailing list
| [EMAIL PROTECTED]
| http://www.haskell.org/mailman/listinfo/glasgo| w-haskell-bugs
|
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs