diff --git a/Data/BinaryList.hs b/Data/BinaryList.hs
--- a/Data/BinaryList.hs
+++ b/Data/BinaryList.hs
@@ -1,4 +1,6 @@
 
+{-# LANGUAGE CPP #-}
+
 -- | Binary lists are lists whose number of elements is a power of two.
 --   This data structure is efficient for some computations like:
 --
@@ -44,6 +46,9 @@
   , generateM
     -- * Queries
   , lengthExponent
+#if !MIN_VERSION_base(4,8,0)
+  , length
+#endif
   , lookup
   , head
   , last
@@ -79,7 +84,11 @@
   , reverse, replicate
   , take, lookup
   , zip, unzip, zipWith
+  , foldr1, length, foldr
     )
+#if MIN_VERSION_base(4,8,0)
+import Prelude (length, foldr, foldr1)
+#endif
 import Data.Foldable (fold,toList)
 import Foreign.Storable (sizeOf)
 import Data.List (find)
@@ -96,6 +105,22 @@
 import Control.Applicative.PhantomState
 import Data.Word (Word8)
 
+-- GHC-7.8 compatibility
+#if !MIN_VERSION_base(4,8,0)
+
+import qualified Prelude
+import Data.Foldable (Foldable (..))
+import Data.Traversable (Traversable (..))
+import Control.Applicative (Applicative (..), (<$>))
+import Data.Monoid (mappend)
+
+-- | /O(1)/. Number of elements in the list.
+length :: BinList a -> Int
+length = (2^) . lengthExponent
+
+#endif
+
+
 -- | An exponent.
 type Exponent = Word8
 
@@ -541,7 +566,9 @@
   fold = foldr1 mappend
   foldl1 = foldr1
   foldMap f = fold . fmap f
+#if MIN_VERSION_base(4,8,0)
   length = (2^) . lengthExponent
+#endif
 
 instance Traversable BinList where
   sequenceA (ListEnd f) = ListEnd <$> f
diff --git a/binary-list.cabal b/binary-list.cabal
--- a/binary-list.cabal
+++ b/binary-list.cabal
@@ -1,5 +1,5 @@
 name:                binary-list
-version:             1.1.0.0
+version:             1.1.0.1
 synopsis:            Lists of length a power of two.
 description:         Implementation of lists whose number of elements is a
                      power of two. Binary lists have this property by definition,
@@ -39,6 +39,7 @@
                ,       deepseq
   default-language:    Haskell2010
   ghc-options:         -Wall -fno-warn-orphans
+  default-extensions: CPP
 
 Source-repository head
   type: git
