aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar David Terei <davidterei@gmail.com>2011-08-03 17:06:28 -0700
committerGravatar David Terei <davidterei@gmail.com>2011-08-03 17:06:28 -0700
commit3cfbe277710c192911c06b28277f316b0f9c3043 (patch)
treefb68bad381a388218aadb9751ac39d53c01aa1f0
parent97adc8f61ab4d3f63b49224da708f633ff4474c3 (diff)
Use Safe Haskell when GHC >= 7.2
-rw-r--r--System/Posix/Directory.hsc3
-rw-r--r--System/Posix/DynamicLinker.hsc3
-rw-r--r--System/Posix/DynamicLinker/Module.hsc3
-rw-r--r--System/Posix/DynamicLinker/Prim.hsc3
-rw-r--r--System/Posix/Env.hsc3
-rw-r--r--System/Posix/Error.hs3
-rw-r--r--System/Posix/Files.hsc3
-rw-r--r--System/Posix/IO.hsc3
-rw-r--r--System/Posix/Process.hsc3
-rw-r--r--System/Posix/Process/Internals.hs3
-rw-r--r--System/Posix/Resource.hsc3
-rw-r--r--System/Posix/Semaphore.hsc4
-rw-r--r--System/Posix/SharedMem.hsc4
-rw-r--r--System/Posix/Signals.hsc3
-rw-r--r--System/Posix/Signals/Exts.hsc3
-rw-r--r--System/Posix/Temp.hsc3
-rw-r--r--System/Posix/Time.hsc3
-rw-r--r--System/Posix/Unistd.hsc3
-rw-r--r--System/Posix/User.hsc3
19 files changed, 57 insertions, 2 deletions
diff --git a/System/Posix/Directory.hsc b/System/Posix/Directory.hsc
index 7f64e16..47fd91f 100644
--- a/System/Posix/Directory.hsc
+++ b/System/Posix/Directory.hsc
@@ -1,3 +1,6 @@
+#if __GLASGOW_HASKELL__ >= 701
+{-# LANGUAGE Trustworthy #-}
+#endif
{-# LANGUAGE ForeignFunctionInterface #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-----------------------------------------------------------------------------
diff --git a/System/Posix/DynamicLinker.hsc b/System/Posix/DynamicLinker.hsc
index 418ce39..ac6efb0 100644
--- a/System/Posix/DynamicLinker.hsc
+++ b/System/Posix/DynamicLinker.hsc
@@ -1,3 +1,6 @@
+#if __GLASGOW_HASKELL__ >= 701
+{-# LANGUAGE Trustworthy #-}
+#endif
-----------------------------------------------------------------------------
-- |
-- Module : System.Posix.DynamicLinker
diff --git a/System/Posix/DynamicLinker/Module.hsc b/System/Posix/DynamicLinker/Module.hsc
index 7ea8284..15d19df 100644
--- a/System/Posix/DynamicLinker/Module.hsc
+++ b/System/Posix/DynamicLinker/Module.hsc
@@ -1,3 +1,6 @@
+#if __GLASGOW_HASKELL__ >= 701
+{-# LANGUAGE Trustworthy #-}
+#endif
{-# LANGUAGE ForeignFunctionInterface #-}
-----------------------------------------------------------------------------
-- |
diff --git a/System/Posix/DynamicLinker/Prim.hsc b/System/Posix/DynamicLinker/Prim.hsc
index 908d863..d285ff6 100644
--- a/System/Posix/DynamicLinker/Prim.hsc
+++ b/System/Posix/DynamicLinker/Prim.hsc
@@ -1,3 +1,6 @@
+#if __GLASGOW_HASKELL__ >= 701
+{-# LANGUAGE Trustworthy #-}
+#endif
{-# LANGUAGE ForeignFunctionInterface #-}
-----------------------------------------------------------------------------
-- |
diff --git a/System/Posix/Env.hsc b/System/Posix/Env.hsc
index 799fd6b..ba24c29 100644
--- a/System/Posix/Env.hsc
+++ b/System/Posix/Env.hsc
@@ -1,3 +1,6 @@
+#if __GLASGOW_HASKELL__ >= 701
+{-# LANGUAGE Trustworthy #-}
+#endif
{-# LANGUAGE ForeignFunctionInterface #-}
-----------------------------------------------------------------------------
-- |
diff --git a/System/Posix/Error.hs b/System/Posix/Error.hs
index d0683c5..81bc62b 100644
--- a/System/Posix/Error.hs
+++ b/System/Posix/Error.hs
@@ -1,3 +1,6 @@
+#if __GLASGOW_HASKELL__ >= 701
+{-# LANGUAGE Trustworthy #-}
+#endif
-----------------------------------------------------------------------------
-- |
-- Module : System.Posix.Error
diff --git a/System/Posix/Files.hsc b/System/Posix/Files.hsc
index e8dbe43..0831bc4 100644
--- a/System/Posix/Files.hsc
+++ b/System/Posix/Files.hsc
@@ -1,3 +1,6 @@
+#if __GLASGOW_HASKELL__ >= 701
+{-# LANGUAGE Trustworthy #-}
+#endif
{-# LANGUAGE ForeignFunctionInterface #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-----------------------------------------------------------------------------
diff --git a/System/Posix/IO.hsc b/System/Posix/IO.hsc
index 710299b..31ee04b 100644
--- a/System/Posix/IO.hsc
+++ b/System/Posix/IO.hsc
@@ -1,3 +1,6 @@
+#if __GLASGOW_HASKELL__ >= 701
+{-# LANGUAGE Trustworthy #-}
+#endif
{-# LANGUAGE ForeignFunctionInterface #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -XRecordWildCards #-}
diff --git a/System/Posix/Process.hsc b/System/Posix/Process.hsc
index 5b91b41..87277ae 100644
--- a/System/Posix/Process.hsc
+++ b/System/Posix/Process.hsc
@@ -1,3 +1,6 @@
+#if __GLASGOW_HASKELL__ >= 701
+{-# LANGUAGE Trustworthy #-}
+#endif
{-# LANGUAGE ForeignFunctionInterface #-}
-----------------------------------------------------------------------------
-- |
diff --git a/System/Posix/Process/Internals.hs b/System/Posix/Process/Internals.hs
index 26f8ce5..a8bd82b 100644
--- a/System/Posix/Process/Internals.hs
+++ b/System/Posix/Process/Internals.hs
@@ -1,3 +1,6 @@
+#if __GLASGOW_HASKELL__ >= 701
+{-# LANGUAGE Trustworthy #-}
+#endif
module System.Posix.Process.Internals (
pPrPr_disableITimers, c_execvpe,
diff --git a/System/Posix/Resource.hsc b/System/Posix/Resource.hsc
index 1a3d2f6..84aa009 100644
--- a/System/Posix/Resource.hsc
+++ b/System/Posix/Resource.hsc
@@ -1,3 +1,6 @@
+#if __GLASGOW_HASKELL__ >= 701
+{-# LANGUAGE Trustworthy #-}
+#endif
{-# LANGUAGE ForeignFunctionInterface #-}
{-# OPTIONS_GHC -w #-}
-- The above warning supression flag is a temporary kludge.
diff --git a/System/Posix/Semaphore.hsc b/System/Posix/Semaphore.hsc
index a9d59df..900f7da 100644
--- a/System/Posix/Semaphore.hsc
+++ b/System/Posix/Semaphore.hsc
@@ -1,5 +1,7 @@
+#if __GLASGOW_HASKELL__ >= 701
+{-# LANGUAGE Trustworthy #-}
+#endif
{-# LANGUAGE ForeignFunctionInterface #-}
-
-----------------------------------------------------------------------------
-- |
-- Module : System.Posix.Semaphore
diff --git a/System/Posix/SharedMem.hsc b/System/Posix/SharedMem.hsc
index bc80063..81febd3 100644
--- a/System/Posix/SharedMem.hsc
+++ b/System/Posix/SharedMem.hsc
@@ -1,6 +1,8 @@
+#if __GLASGOW_HASKELL__ >= 701
+{-# LANGUAGE Trustworthy #-}
+#endif
{-# LANGUAGE ForeignFunctionInterface #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-
-----------------------------------------------------------------------------
-- |
-- Module : System.Posix.SharedMem
diff --git a/System/Posix/Signals.hsc b/System/Posix/Signals.hsc
index e156e5b..13e1e05 100644
--- a/System/Posix/Signals.hsc
+++ b/System/Posix/Signals.hsc
@@ -1,3 +1,6 @@
+#if __GLASGOW_HASKELL__ >= 701
+{-# LANGUAGE Trustworthy #-}
+#endif
{-# LANGUAGE DeriveDataTypeable,PatternGuards #-}
{-# OPTIONS_GHC -fno-cse #-} -- global variables
-----------------------------------------------------------------------------
diff --git a/System/Posix/Signals/Exts.hsc b/System/Posix/Signals/Exts.hsc
index 0d98dd5..1ff4049 100644
--- a/System/Posix/Signals/Exts.hsc
+++ b/System/Posix/Signals/Exts.hsc
@@ -1,3 +1,6 @@
+#if __GLASGOW_HASKELL__ >= 701
+{-# LANGUAGE Trustworthy #-}
+#endif
{-# LANGUAGE ForeignFunctionInterface #-}
-----------------------------------------------------------------------------
-- |
diff --git a/System/Posix/Temp.hsc b/System/Posix/Temp.hsc
index 6125802..b6af83e 100644
--- a/System/Posix/Temp.hsc
+++ b/System/Posix/Temp.hsc
@@ -1,3 +1,6 @@
+#if __GLASGOW_HASKELL__ >= 701
+{-# LANGUAGE Trustworthy #-}
+#endif
{-# LANGUAGE ForeignFunctionInterface #-}
-----------------------------------------------------------------------------
-- |
diff --git a/System/Posix/Time.hsc b/System/Posix/Time.hsc
index 1d2e107..9de3937 100644
--- a/System/Posix/Time.hsc
+++ b/System/Posix/Time.hsc
@@ -1,3 +1,6 @@
+#if __GLASGOW_HASKELL__ >= 701
+{-# LANGUAGE Trustworthy #-}
+#endif
{-# LANGUAGE ForeignFunctionInterface #-}
-----------------------------------------------------------------------------
-- |
diff --git a/System/Posix/Unistd.hsc b/System/Posix/Unistd.hsc
index 4aefd60..8fbb525 100644
--- a/System/Posix/Unistd.hsc
+++ b/System/Posix/Unistd.hsc
@@ -1,3 +1,6 @@
+#if __GLASGOW_HASKELL__ >= 701
+{-# LANGUAGE Trustworthy #-}
+#endif
{-# LANGUAGE ForeignFunctionInterface #-}
{-# OPTIONS_GHC -fno-warn-unused-imports -fno-warn-unused-binds #-}
-----------------------------------------------------------------------------
diff --git a/System/Posix/User.hsc b/System/Posix/User.hsc
index 4f31451..f1d4fc4 100644
--- a/System/Posix/User.hsc
+++ b/System/Posix/User.hsc
@@ -1,3 +1,6 @@
+#if __GLASGOW_HASKELL__ >= 701
+{-# LANGUAGE Trustworthy #-}
+#endif
{-# LANGUAGE ForeignFunctionInterface #-}
-----------------------------------------------------------------------------
-- |