Re: Plea for Change #2: Tools

1999-03-29 Thread Lennart Augustsson
> ghc -c Add.hs > ghc -c Main.hs > ghc -o Main Main.o Add.o Or just ghc Add.hs Main.gs But I agree. I always use hbcmake and it does what I want. -- Lennart

Re: Plea for Change #1: Why, O why, `Main'?

1999-03-29 Thread Lennart Augustsson
> Add to this that the `Main' module must reside in a `Main' file and > you have an unfortunate consequence that you can only have one `Main' > function in each directory. That's not so. Haskell doesn't say anything about what files modules have to reside in. Some implementation may have the re

Plea for Change #2: Tools

1999-03-29 Thread Tommy Thorn
I have another pet peeve: ease of use of tools. The Haskell standard (intentionally?) leaves the interface to tools an implementors question. Unfortunate, IMHO, every Haskell compiler I've tried (GHC, NHC, HBC) have just had plain horrible interfaces. Interpreters are inherently a different st

Plea for Change #1: Why, O why, `Main'?

1999-03-29 Thread Tommy Thorn
Jens' question gave my a perfect opportunity to open my a pet peeve of mine: the ditatorship of `Main'. In Haskell, the `main' function must reside in the `Main' module. Add to this that the `Main' module must reside in a `Main' file and you have an unfortunate consequence that you can only have

Main.main [Was: question to GHC 4.02]

1999-03-29 Thread Tommy Thorn
Dear Jens, the problem is quite simple, but alas, the error message leaves much to be disired: standalone Haskell program must contain a `main' function in the `Main' module (thus the missing Main_main_closure reference). Furthermore, this `main' function must have the type signature `IO ()' (or

Re: question to GHC 4.02

1999-03-29 Thread Lennart Augustsson
> I have written this small simple program > > module Add where > add :: Int -> Int -> Int > addx1 x2 x1 + x2 > > I have create an object file with the command % ghc -c additon.hs > Now I will create an executable file. > What I have to do? Well, where is your Main module? Haskell

Hugs Update

1999-03-29 Thread Mark Jones
--- Hugs update --- Over the past few months, there have been a number of changes in the Hugs world; the purpose of this message is to update you with details of what is happening, and of our plans for the future. The upcoming Hugs 98 release: -

Re: Plea for Change #1: Why, O why, `Main'?

1999-03-29 Thread Joe Fasel
Tommy Thorn writes | Jens' question gave my a perfect opportunity to open my a pet peeve of | mine: the ditatorship of `Main'. | | In Haskell, the `main' function must reside in the `Main' module. | Add to this that the `Main' module must reside in a `Main' file and | you have an unfortunate con