diff --git a/System/Console/Terminfo/Base.hs b/System/Console/Terminfo/Base.hs
--- a/System/Console/Terminfo/Base.hs
+++ b/System/Console/Terminfo/Base.hs
@@ -45,7 +45,9 @@
 
 import Control.Applicative
 import Control.Monad
+#if !MIN_VERSION_base(4,8,0)
 import Data.Monoid
+#endif
 import Foreign.C
 import Foreign.ForeignPtr
 import Foreign.Ptr
diff --git a/terminfo.cabal b/terminfo.cabal
--- a/terminfo.cabal
+++ b/terminfo.cabal
@@ -1,6 +1,6 @@
 Name:           terminfo
 Cabal-Version:  >=1.10
-Version:        0.4.0.0
+Version:        0.4.0.1
 Category:       User Interfaces
 License:        BSD3
 License-File:   LICENSE
@@ -29,7 +29,7 @@
     other-extensions: CPP, DeriveDataTypeable, FlexibleInstances, ScopedTypeVariables
     if impl(ghc>=7.3)
       other-extensions: Safe, Trustworthy
-    build-depends:    base >= 4.3 && < 4.8
+    build-depends:    base >= 4.3 && < 4.9
     ghc-options:      -Wall
     exposed-modules:
                     System.Console.Terminfo
