Calling an external command from a Haskell program

Adrian Hey ahey at iee.org
Tue Oct 21 05:05:11 EDT 2003


On Wednesday 15 Oct 2003 8:44 am, Salvador Lucas wrote:
> Dear all,
>
> I think this question is not new, but I am not able to
> find the answer. How to proceed to execute an external
> Linux command (e.g., 'ls') from a Haskell program?
>
> Thanks in advance,

You can use..
	system :: String -> IO ExitCode
in library module System.Cmd

Regards
--
Adrian Hey


More information about the Haskell mailing list