Import hs-plugins cvs

This commit is contained in:
Don Stewart
2005-04-24 08:51:33 +00:00
commit 887fa59389
494 changed files with 23721 additions and 0 deletions

View File

@ -0,0 +1,17 @@
{-# GLOBALOPTIONS -package posix #-}
module M ( resource ) where
import System.IO.Unsafe
import API
import System.Process
import System.IO
resource = tiny { field = date }
date :: String
date = unsafePerformIO $ do
(_,outh,_,proc) <- runInteractiveProcess "echo" ["hello"] Nothing Nothing
waitForProcess proc
s <- hGetContents outh
return s