2005-05-13 11:44:36 +00:00
|
|
|
{-# GLOBALOPTIONS -package mtl #-}
|
2005-04-24 08:51:33 +00:00
|
|
|
|
|
|
|
module M ( resource ) where
|
|
|
|
|
|
|
|
import API
|
2005-05-15 06:03:55 +00:00
|
|
|
import System.IO.Unsafe
|
2005-04-24 08:51:33 +00:00
|
|
|
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
|