projects
/
ghc-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add tests from testsuite/tests/h98
[ghc-base.git]
/
System
/
Timeout.hs
diff --git
a/System/Timeout.hs
b/System/Timeout.hs
index
431f709
..
df33625
100644
(file)
--- a/
System/Timeout.hs
+++ b/
System/Timeout.hs
@@
-1,3
+1,8
@@
+{-# LANGUAGE CPP #-}
+#ifdef __GLASGOW_HASKELL__
+{-# LANGUAGE DeriveDataTypeable, StandaloneDeriving #-}
+#endif
+
-------------------------------------------------------------------------------
-- |
-- Module : System.Timeout
-------------------------------------------------------------------------------
-- |
-- Module : System.Timeout
@@
-32,7
+37,7
@@
import Data.Unique (Unique, newUnique)
-- interrupt the running IO computation when the timeout has
-- expired.
-- interrupt the running IO computation when the timeout has
-- expired.
-data Timeout = Timeout Unique deriving Eq
+newtype Timeout = Timeout Unique deriving Eq
INSTANCE_TYPEABLE0(Timeout,timeoutTc,"Timeout")
instance Show Timeout where
INSTANCE_TYPEABLE0(Timeout,timeoutTc,"Timeout")
instance Show Timeout where