diff --git a/Graphics/X11/Xlib/Atom.hsc b/Graphics/X11/Xlib/Atom.hsc
--- a/Graphics/X11/Xlib/Atom.hsc
+++ b/Graphics/X11/Xlib/Atom.hsc
@@ -89,8 +89,6 @@
 
         ) where
 
-import Control.Monad ( void )
-
 import Graphics.X11.Types
 import Graphics.X11.Xlib.Internal
 import Graphics.X11.Xlib.Types
@@ -136,7 +134,7 @@
     ccharp <- (pooledMallocArray pool $ length atoms) :: IO (Ptr (Ptr CChar))
 
     pokeArray atomsp atoms
-    void $ cXGetAtomNames dpy atomsp (fromIntegral $ length atoms :: CInt) ccharp
+    _ <- cXGetAtomNames dpy atomsp (fromIntegral $ length atoms :: CInt) ccharp
 
     res <- peekArray (length atoms) ccharp >>= mapM peekCString
     peekArray (length atoms) ccharp >>= mapM_ xFree
diff --git a/X11.cabal b/X11.cabal
--- a/X11.cabal
+++ b/X11.cabal
@@ -1,5 +1,5 @@
 name:               X11
-version:            1.6.1.1
+version:            1.6.1.2
 license:            BSD3
 license-file:       LICENSE
 copyright:          Alastair Reid, 1999-2003, libraries@haskell.org 2003-2007, Don Stewart 2007-2009, Spencer Janssen 2007-2009, Daniel Wagner 2009-2011.
