diff --git a/FastIO.hs b/FastIO.hs
--- a/FastIO.hs
+++ b/FastIO.hs
@@ -158,9 +158,9 @@
 getPermissions :: P.ByteString -> IO Permissions
 getPermissions name = do
   B.useAsCString name $ \s -> do
-  readp <- c_access s r_OK
-  write <- c_access s w_OK
-  exec  <- c_access s x_OK
+  readp <- c_access s $ fromIntegral r_OK
+  write <- c_access s $ fromIntegral w_OK
+  exec  <- c_access s $ fromIntegral x_OK
   packedWithFileStatus "FastIO.getPermissions" name $ \st -> do
   is_dir <- isDirectory st
   return (
diff --git a/README b/README
--- a/README
+++ b/README
@@ -8,6 +8,7 @@
     A version of FPS >= 0.7                   http://www.cse.unsw.edu.au/~dons/fps.html
     A Cabal newer than 1.0                    http://haskell.org/cabal
     curses
+    binary >= 0.2                             http://darcs.haskell.org/binary/
 
 Building:
     $ chmod +x configure Setup.hs
diff --git a/hmp3.cabal b/hmp3.cabal
--- a/hmp3.cabal
+++ b/hmp3.cabal
@@ -1,5 +1,5 @@
 name:                hmp3
-version:             1.2
+version:             1.3
 license:             GPL
 license-file:        LICENSE
 author:              Don Stewart
