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/glasgow-haskell-bugs