Re: Running nhc
Malcolm Wallace <[email protected]> Mon, 21 Jul 2003 10:38:23 +0100
| Newsgroups | gmane.comp.lang.haskell.nhc.bugs |
|---|---|
| Organization | Dept of Computer Science, University of York |
| Message-ID | <[email protected]> |
sonja groening <[email protected]> writes: > > But you need to have a module called "Main", containing the > > function "main", > > I think, that would be right, if I want to use main. But I just > tried out a little programm like > module Test where > data Foo = Bar > and got the error I mentioned above. The example you give is not a complete Haskell program, because it doesn't contain a function called main. That is why nhc98 gives an error. However, perhaps you really want an interactive environment to try out your incomplete programs. In that case, you want to use 'hi' instead of nhc98 directly. 'hi' provides an interactive prompt for entering expressions and seeing their results, rather like the Hugs or ghci Haskell systems. Regards, Malcolm