
7 Mar
2005
7 Mar
'05
6:32 a.m.
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.