[commit: ghc] master: Remove unnecessary imports in GHC.Event.KQueue to fix compiler warnings. (2622eae)

git at git.haskell.org git at git.haskell.org
Wed Sep 17 19:18:46 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/2622eae34aa58341e4df2a7d2d8aa7a0ee3c39eb/ghc

>---------------------------------------------------------------

commit 2622eae34aa58341e4df2a7d2d8aa7a0ee3c39eb
Author: Andreas Voellmy <andreas.voellmy at gmail.com>
Date:   Wed Sep 17 08:26:41 2014 -0400

    Remove unnecessary imports in GHC.Event.KQueue to fix compiler warnings.
    
    Summary: The imports of Data.Monoid and Data.Maybe in GHC.Event.KQueue are unnecessary and cause validate to fail.
    
    Test Plan: Validate successfully (though I get some unrelated failures).
    
    Reviewers: austin
    
    Subscribers: simonmar, ezyang, carter
    
    Differential Revision: https://phabricator.haskell.org/D217


>---------------------------------------------------------------

2622eae34aa58341e4df2a7d2d8aa7a0ee3c39eb
 libraries/base/GHC/Event/KQueue.hsc | 2 --
 1 file changed, 2 deletions(-)

diff --git a/libraries/base/GHC/Event/KQueue.hsc b/libraries/base/GHC/Event/KQueue.hsc
index bc88855..439765c 100644
--- a/libraries/base/GHC/Event/KQueue.hsc
+++ b/libraries/base/GHC/Event/KQueue.hsc
@@ -28,8 +28,6 @@ available = False
 
 import Control.Monad (when)
 import Data.Bits (Bits(..), FiniteBits(..))
-import Data.Maybe (Maybe(..))
-import Data.Monoid (Monoid(..))
 import Data.Word (Word16, Word32)
 import Foreign.C.Error (throwErrnoIfMinus1, eINTR, eINVAL,
                         eNOTSUP, getErrno, throwErrno)



More information about the ghc-commits mailing list