GHC 6.4 release candidates available

Keean Schupke k.schupke at imperial.ac.uk
Mon Mar 7 06:32:40 EST 2005


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.



More information about the Glasgow-haskell-users mailing list