diff --git a/Codec/Picture/Repa.hs b/Codec/Picture/Repa.hs
--- a/Codec/Picture/Repa.hs
+++ b/Codec/Picture/Repa.hs
@@ -133,7 +133,7 @@
 -- and other C interfaces.  Notice the format of the data depends on
 -- the type of the 'Img a'. O(n)
 toVector :: Img a -> S.Vector Word8
-toVector (Img a) = S.convert (RU.toUnboxed a)
+toVector (Img a) = S.convert . RU.toUnboxed $ a
 
 -- Helper functions --
 getChannel :: Int -> PixelRGBA8 -> Word8
diff --git a/JuicyPixels-repa.cabal b/JuicyPixels-repa.cabal
--- a/JuicyPixels-repa.cabal
+++ b/JuicyPixels-repa.cabal
@@ -1,5 +1,5 @@
 Name:                JuicyPixels-repa
-Version:             0.3
+Version:             0.3.1
 Synopsis:            Convenience functions to obtain array representations of images.
 Description:         This wraps the Juicy.Pixels library to convert into 'Repa' and 
                      'Data.Vector.Storable' formats.
@@ -18,7 +18,7 @@
 
 Library
   Exposed-modules:     Codec.Picture.Repa
-  Build-depends:       base >= 4.0 && < 5, repa >= 2.1 && < 3.1
+  Build-depends:       base >= 4.0 && < 5, repa >= 3.0 && < 3.1
                     , JuicyPixels >= 1.1 && < 1.3
                     , vector >= 0.9 && < 0.10
                     , bytestring >= 0.9 && < 0.10
