projects
/
ghc-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
For GHC, implement the Typeable.hs macros using standalone deriving
[ghc-base.git]
/
System
/
CPUTime.hsc
diff --git
a/System/CPUTime.hsc
b/System/CPUTime.hsc
index
c2faa1c
..
a25c750
100644
(file)
--- a/
System/CPUTime.hsc
+++ b/
System/CPUTime.hsc
@@
-1,3
+1,5
@@
+{-# LANGUAGE CPP, NondecreasingIndentation, ForeignFunctionInterface #-}
+
-----------------------------------------------------------------------------
-- |
-- Module : System.CPUTime
-----------------------------------------------------------------------------
-- |
-- Module : System.CPUTime
@@
-31,8
+33,11
@@
import CPUTime ( getCPUTime, cpuTimePrecision )
#endif
#ifdef __GLASGOW_HASKELL__
#endif
#ifdef __GLASGOW_HASKELL__
-import Foreign
+import Foreign hiding (unsafePerformIO)
import Foreign.C
import Foreign.C
+#if !defined(CLK_TCK)
+import System.IO.Unsafe (unsafePerformIO)
+#endif
#include "HsBaseConfig.h"
#include "HsBaseConfig.h"