[Haskell] ANNOUNCE: HsUnix 1.0.1 - Haskell for Unix ShellScripting

andrew cooke andrew at acooke.org
Mon Feb 9 18:54:02 EST 2004


wouldn't it be nicer to have
- mainwrapper and call combined
- helper fucntions defined for execp "cat" etc

i haven't downloaded your package, but the syntax as it is looks very
verbose.  i know it's a small point, but shells have to support a compact
syntax (or is the idea only to support "shell scripts" and not provide a
shell? - i was assuming you'd start ghci in a window and load this module
automatically when you open an xterm...)

andrew

Volker Wysk said:
> The equivalent HsUnix script looks like this:
>
>   import HsUnix
>
>   main = mainwrapper $
>      call (execp "cat" ["nosuchfile"] -|- execp "echo" ["hello"])

-- 
personal web site: http://www.acooke.org/andrew
personal mail list: http://www.acooke.org/andrew/compute.html


More information about the Haskell mailing list