
5 Nov
2007
5 Nov
'07
2:41 p.m.
On Nov 5, 2007 1:46 PM, Maurício
Hi,
Is there a way to run 'ghc -e' taking input from standard input? I would like to use it in a pipe.
It seems to me that you can use getContents, et. al., as you would from any other Haskell program: $ echo hello there mauricio | ghc -e "print =<< (Control.Monad.liftM (reverse . words)) getContents" ["mauricio","there","hello"] G