aboutsummaryrefslogtreecommitdiffhomepage
path: root/System/Posix/Directory
diff options
context:
space:
mode:
authorGravatar Herbert Valerio Riedel <hvr@gnu.org>2013-10-12 23:49:25 +0200
committerGravatar Herbert Valerio Riedel <hvr@gnu.org>2013-10-12 23:49:25 +0200
commite968172cb0c9f4fc653c775faf3ecb661f5b1948 (patch)
tree14451b438f7aa84a75c4f1f94cceb2bea3959ffc /System/Posix/Directory
parent7b9044abd826ef1e0f91a1ce5922ed1303e1f2a0 (diff)
Make `-Wall` clean and drop `-fno-warn-unused-imports`
CPP conditional code sections have been carefully taken into account while performing this warning cleanup. Most `OPTIONS_GHC` declarations could be dropped (now only a lonely `{-# OPTIONS_GHC -fno-cse #-}` remains in `Posix.Signals`). Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
Diffstat (limited to 'System/Posix/Directory')
-rw-r--r--System/Posix/Directory/ByteString.hsc1
-rw-r--r--System/Posix/Directory/Common.hsc3
2 files changed, 0 insertions, 4 deletions
diff --git a/System/Posix/Directory/ByteString.hsc b/System/Posix/Directory/ByteString.hsc
index 4ac043a..28edd35 100644
--- a/System/Posix/Directory/ByteString.hsc
+++ b/System/Posix/Directory/ByteString.hsc
@@ -1,5 +1,4 @@
{-# LANGUAGE NondecreasingIndentation #-}
-{-# OPTIONS_GHC -fno-warn-unused-imports #-}
#ifdef __GLASGOW_HASKELL__
{-# LANGUAGE Trustworthy #-}
#endif
diff --git a/System/Posix/Directory/Common.hsc b/System/Posix/Directory/Common.hsc
index 29a5a59..86d87ca 100644
--- a/System/Posix/Directory/Common.hsc
+++ b/System/Posix/Directory/Common.hsc
@@ -1,4 +1,3 @@
-{-# OPTIONS_GHC -fno-warn-unused-imports #-}
#ifdef __GLASGOW_HASKELL__
{-# LANGUAGE Trustworthy #-}
#endif
@@ -32,8 +31,6 @@ module System.Posix.Directory.Common (
changeWorkingDirectoryFd,
) where
-import System.IO.Error
-import System.Posix.Error
import System.Posix.Types
import Foreign
import Foreign.C