[Haskell] system command

Pepe Iborra mnislaih at gmail.com
Tue Jul 4 05:41:52 EDT 2006


You had the solution in the topic of your post!
Look at System.Cmd
Or maybe you prefer to use System.Process

The GHC documentation includes extensive docs about libraries:
http://www.haskell.org/ghc/docs/latest/html/libraries/index.html

Cheers
Pepe

On 7/4/06, J. E. Palomar <jepalomar23 at ono.com> wrote:
> Hi,
>
> I am newbie in Haskell programing and need to launch
> a shell command through a Haskell code.
> In other programing languages like C or Java I know how
> carry out this task; for instance the code
>
> system("ls -l ")
>
> in C or
>
> exec("ls -l")
>
> in Java  work fine and lists the working directory.
> I know that in interactive mode the Haskell command
> :! ls -l
> is similar, but ¿It is possible something like in Haskell
> non-interactive mode?
>
> Thaks in advance.
>
> Helptex23
>
>
>
>
>
> _______________________________________________
> Haskell mailing list
> Haskell at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell
>


More information about the Haskell mailing list