diff --git a/Codec-Image-DevIL.cabal b/Codec-Image-DevIL.cabal
--- a/Codec-Image-DevIL.cabal
+++ b/Codec-Image-DevIL.cabal
@@ -4,7 +4,7 @@
     Provides functions readImage and writeImage, which can read
     and write many image formats from/to an RGBA array of values
     to work with.
-Version: 0.2.3
+Version: 0.2.4
 Stability: experimental
 Synopsis: An FFI interface to the DevIL library
 License: BSD3
diff --git a/Codec/Image/DevIL.hsc b/Codec/Image/DevIL.hsc
--- a/Codec/Image/DevIL.hsc
+++ b/Codec/Image/DevIL.hsc
@@ -13,6 +13,7 @@
 
 import Data.Array.Storable
 import Data.Array.Unboxed
+import Data.Array.Unsafe
 import Control.Applicative
 import Control.Monad
 
@@ -151,6 +152,7 @@
                       (castPtr p)
     listArray bounds <$> lazyElems ar
 
+lazyElems :: StorableArray (Int, Int, Int) Word8 -> IO [Word8]
 lazyElems ar = do
     ixs <- range <$> getBounds ar
     go ixs
