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
b1c79b3
..
df33625
100644
(file)
--- a/
System/Timeout.hs
+++ b/
System/Timeout.hs
@@
-1,4
+1,7
@@
{-# LANGUAGE CPP #-}
{-# LANGUAGE CPP #-}
+#ifdef __GLASGOW_HASKELL__
+{-# LANGUAGE DeriveDataTypeable, StandaloneDeriving #-}
+#endif
-------------------------------------------------------------------------------
-- |
-------------------------------------------------------------------------------
-- |
@@
-34,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