
7 Mar
2006
7 Mar
'06
3:16 p.m.
Neil Mitchell wrote:
In unix you could wrap ghc in a script that would print "Done" if ghc finished successfully. I am sure you can do it somehow in windows.
ghc --make Whatever if errorfail 1 goto failed echo Success :-) goto end
failed echo Failure :-( end
Thanks Neil - the script below, based on your script above, works on WinXP: echo off C:\ghc\ghc-6.4\bin\ghc.exe -fglasgow-exts -fffi --make main.hs -optl-lduma -optl-L"c:\dll" if errorlevel 1 goto failed echo Success :-) goto end :failed echo Failure :-( :end (compiling haskell that links to libduma.a stored in c:\dll) Regards, Brian.