
Hallo! I tried to compile the following little program (hallo.hs) with ghc-5.04 --make -prof -auto: import System (getArgs) main :: IO () main= do args <- getArgs if args == [] then error "Aufruf: Filename Dimension1 Dimension2 ..." else prog (head args) (tail args) prog :: FilePath -> [String] -> IO () prog file dimZ = do cont <- readFile file putStr (file ++ "\n") putStr (show dimZ ++ "\n") let result = "Hello world!" writeFile (file++".out") ( result) The system is WinNT and compiling succeeded. But I got an a.out file while I should get a file hallo.exe (according to ghc --help). I renamed the program to hallo.exe and tried it. When I don't give any arguments it behaves like expected. If I give it one or more arguments it crashes. When I compile it only with ghc --make hallo.hs I also get an a.out file but this behaves well when renamed to hallo.exe. What is the problem? And what can I do to use the profiling? Thank, Andreas