how to obtain a executable file

jigg at ugr.es jigg at ugr.es
Fri Jul 6 12:45:43 EDT 2001


hello, I have instaled GHC-4.08.2. on a computer with W98.
I followed the instructions (I created C:\TEMP and I added to PATH the entries C:\ghc\ghc-4.08\bin and extra-bin). After that I executed bash.exe, I wrote the "hello world" program as follows
> cat main.hs
module Main(main) where

main = putStrLn "Hello, world!"

and I compiled it with the command
> ghc -o main main.hs

The instruction says that with the above instruction you obtain a file called main (perhaps main.exe) but in my computers no file appears and no error (neither messages) are given in the compilation. When I type ./main the computer says "file not found".

What could be wrong in my intallation?

I also use ghc-4.08.2 for linux (Suse 7.1) and it goes fine.

Thanks in advance.

J.I. García-García
Dpto. Álgebra, Univ. Granada
España




More information about the Glasgow-haskell-bugs mailing list