There are several different versions of Vector
. I was able to fix this by explicitly importing the same one that is inferred by GHC.
import qualified Codec.Picture as Juicy
import Data.Vector.Storable
import GHC.Word
And declaring the type like this:
juicyLoad :: FilePath -> IO (Vector Word8)