Simon Marlow wrote:
On 04 March 2005 20:49, Keean Schupke wrote:
Further to my last point, what if the top level module is Main...
ghci Main.hs
and that includes a main function, and pragmas, so that main runs
when ghci is finished loading (automatically).
GHCi doesn't run anything automatically. Could you elaborate?
My mistake... It seems fine to call 'main' in a .hs file
which calls overlapping instances, so there appears to only
be an issue with interactive execution.
I guess this is not as serious as I thought, as runghc (which is
ghci that automatically calls Main.main right?) works fine.
Keean.
_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users