[Haskell-cafe] "piping" to system call

Marco Túlio Gontijo e Silva marcot at riseup.net
Tue Sep 23 10:43:49 EDT 2008


Em Ter, 2008-09-23 às 13:37 +0200, Janis Voigtlaender escreveu:
(...)
> That is, I want a function like
> 
>    system' :: String -> String -> IO ExitCode
> 
> such that
> 
>    system' cmd inp
> 
> would be equivalent to first writing inp to a file, say "temp", and then
> calling
> 
>    system (cmd ++ " < temp")
(...)
> Does such a system' exist?

I think you should take a look at HSH[0].

Greetings.

0: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/HSH

-- 
marcot
Página: http://marcotmarcot.iaaeee.org/
Blog: http://marcotmarcot.blogspot.com/
Correio: marcot at riseup.net
XMPP: marcot at jabber.org
IRC: marcot at irc.freenode.net
Telefone: 25151920
Celular: 98116720
Endereço:
  Rua Turfa, 639/701
  Prado 30410-370
  Belo Horizonte/MG Brasil




More information about the Haskell-Cafe mailing list