<<loop>> in GHC 5.01 "Zarjaz"
Julian Seward (Intl Vendor)
v-julsew at microsoft.com
Mon Aug 13 07:28:55 EDT 2001
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:mark at eeter.fi.tartu.ee]
| Sent: Thursday, July 19, 2001 11:03 PM
| To: glasgow-haskell-bugs at haskell.org
| 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
| Glasgow-haskell-bugs at haskell.org
| http://www.haskell.org/mailman/listinfo/glasgo| w-haskell-bugs
|
More information about the Glasgow-haskell-bugs
mailing list