9 Feb
2004
9 Feb
'04
9:54 p.m.
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