[ghci] Comparison with Hugs

2001-04-24 Thread Volker Stolz

In Hugs I can throw some definitions into a file and load it
on the shell command line or using :l in Hugs.

ghci however will complain that main is missing and even won't keep
the defined functions in scope. Is there anything I can do about that?
It even doesn't invoke main if it's present.

I could hack ghci do add main = print 1 in case main is undefined,
but that's not really something I'd like to admit afterwards...
-- 
Abstrakte Syntaxträume.
Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME

___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users



Re: [ghci] Comparison with Hugs

2001-04-24 Thread Marcin 'Qrczak' Kowalczyk

Tue, 24 Apr 2001 16:19:21 +0200, Volker Stolz [EMAIL PROTECTED] 
pisze:

 ghci however will complain that main is missing and even won't keep
 the defined functions in scope. Is there anything I can do about that?

Add 'module Foo where' at the top of the file (preferably with the
module name matching the filename).

-- 
 __(  Marcin Kowalczyk * [EMAIL PROTECTED] http://qrczak.ids.net.pl/
 \__/
  ^^  SYGNATURA ZASTÊPCZA
QRCZAK


___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users