Getting GHC to print "Done" when it's finished linking?

Tomasz Zielonka tomasz.zielonka at gmail.com
Tue Mar 7 14:03:08 EST 2006


On Tue, Mar 07, 2006 at 06:54:50PM +0000, 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

In unix/sh:

#!/bin/sh
ghc "$@" && echo Done

Best regards
Tomasz

-- 
I am searching for programmers who are good at least in
(Haskell || ML) && (Linux || FreeBSD || math)
for work in Warsaw, Poland


More information about the Glasgow-haskell-users mailing list