diff --git a/Data/Array/Repa/IO/DevIL.hsc b/Data/Array/Repa/IO/DevIL.hsc
--- a/Data/Array/Repa/IO/DevIL.hsc
+++ b/Data/Array/Repa/IO/DevIL.hsc
@@ -147,8 +147,8 @@
 ilInit = do
     ilInitC
     -- By default, origin is undefined and depends on the image type
-    ilOriginFuncC (#const IL_ORIGIN_LOWER_LEFT)
-    ilEnableC (#const IL_ORIGIN_SET)
+    _ <- ilOriginFuncC (#const IL_ORIGIN_LOWER_LEFT)
+    _ <- ilEnableC (#const IL_ORIGIN_SET)
     return ()
 {-# INLINE ilInit #-}
     
@@ -180,14 +180,16 @@
 
 foreign import ccall "ilGetInteger" ilGetIntegerC :: ILenum -> IO ILint
 
-il_RGB = (#const IL_RGB) :: ILint
-il_RGBA = (#const IL_RGBA) :: ILint
-il_LUMINANCE = (#const IL_LUMINANCE) :: ILint
+il_RGB, il_RGBA, il_LUMINANCE :: ILint
+il_RGB = (#const IL_RGB) 
+il_RGBA = (#const IL_RGBA)
+il_LUMINANCE = (#const IL_LUMINANCE)
 
-il_IMAGE_HEIGHT = (#const IL_IMAGE_HEIGHT) :: ILenum
-il_IMAGE_WIDTH = (#const IL_IMAGE_WIDTH) :: ILenum
-il_IMAGE_FORMAT = (#const IL_IMAGE_FORMAT) :: ILenum
-il_UNSIGNED_BYTE = (#const IL_UNSIGNED_BYTE) :: ILenum
+il_IMAGE_HEIGHT, il_IMAGE_WIDTH, il_IMAGE_FORMAT, il_UNSIGNED_BYTE :: ILenum
+il_IMAGE_HEIGHT = (#const IL_IMAGE_HEIGHT)
+il_IMAGE_WIDTH = (#const IL_IMAGE_WIDTH)
+il_IMAGE_FORMAT = (#const IL_IMAGE_FORMAT)
+il_UNSIGNED_BYTE = (#const IL_UNSIGNED_BYTE)
 
 foreign import ccall "ilGetData" ilGetDataC :: IO (Ptr ILubyte)
 
diff --git a/repa-devil.cabal b/repa-devil.cabal
--- a/repa-devil.cabal
+++ b/repa-devil.cabal
@@ -1,5 +1,5 @@
 Name:                repa-devil
-Version:             0.3.0
+Version:             0.3.1
 Synopsis:            Support for image reading and writing of Repa arrays using in-place FFI calls
 
 Description:         The repa-image library adds support for reading and
@@ -41,13 +41,13 @@
   
   Build-depends:       
     base              >= 4.5 && < 5.0,
-    repa              >= 3.1.0.0 && < 4.0,
+    repa              >= 3.2.0.0 && < 4.0,
     transformers      >= 0.2 && < 0.3
   
   Build-tools:
     hsc2hs
     
-  GHC-Options: -Wall
+  GHC-Options: -O2 -Wall
   
   Extensions:
     CPP,
