<<loop>> in GHC 5.01 "Zarjaz"
Mark Tehver
mark at eeter.fi.tartu.ee
Thu Jul 19 18:02:30 EDT 2001
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
More information about the Glasgow-haskell-bugs
mailing list