threadDelay and friends are GHC-only
authorRoss Paterson <ross@soi.city.ac.uk>
Mon, 11 Aug 2008 17:50:39 +0000 (17:50 +0000)
committerRoss Paterson <ross@soi.city.ac.uk>
Mon, 11 Aug 2008 17:50:39 +0000 (17:50 +0000)
Control/Concurrent.hs

index 38a08d2..a0faad0 100644 (file)
@@ -427,6 +427,7 @@ runInUnboundThread action = do
 
 #endif /* __GLASGOW_HASKELL__ */
 
+#ifdef __GLASGOW_HASKELL__
 -- ---------------------------------------------------------------------------
 -- threadWaitRead/threadWaitWrite
 
@@ -618,3 +619,4 @@ foreign import ccall safe "fdReady"
       lock is woken up, but haven't found it to be useful for anything
       other than this example :-)
 -}
+#endif /* __GLASGOW_HASKELL__ */