[Haskell-cafe] Problem with System.Timeout in Windows
fryguybob at gmail.com
Thu Aug 5 07:33:34 EDT 2010
I tried your example on 6.12.3 and it worked fine for me (Windows 7).
On Thu, Aug 5, 2010 at 1:35 AM, Adolfo Builes
<builes.adolfo at googlemail.com>wrote:
> Hi All:
> I have been trying to use System.timeout in windows, but for some
> reason it doesn't work, a concrete example is:
> import Network.HTTP
> import System.Timeout
> main = do
> rsp <- timeout 10000000 $ simpleHTTP $ getRequest "http://10.1.2.3"
> case rsp of
> Just rsp -> print $ show rsp
> Nothing -> error "Nothing"
> In this case I would expect to receive "Nothing" after 10 seconds, but
> it ignores the timeout function.
> I'm compiling with -threaded, but it does not work either, I'm using ghc
> Does someone know what could be going wrong ?
> Thanks !
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe