packages feed

crypto-random 0.0.2 → 0.0.3

raw patch · 2 files changed

+4/−4 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

Crypto/Random/Entropy/Unix.hs view
@@ -14,7 +14,7 @@ import Foreign.Ptr import Data.Word (Word8) import Crypto.Random.Entropy.Source-import Control.Exception+import Control.Exception as E import System.Posix.Types (Fd) import System.Posix.IO @@ -38,7 +38,7 @@  openDev :: String -> IO (Maybe H) openDev filepath = (Just `fmap` openFd filepath ReadOnly Nothing fileFlags)-    `catch` \(_ :: IOException) -> return Nothing+    `E.catch` \(_ :: IOException) -> return Nothing   where fileFlags = defaultFileFlags { nonBlock = True }  closeDev :: H -> IO ()@@ -47,4 +47,4 @@ gatherDevEntropy :: H -> Ptr Word8 -> Int -> IO Int gatherDevEntropy fd ptr sz =      (fromIntegral `fmap` fdReadBuf fd ptr (fromIntegral sz))-    `catch` \(_ :: IOException) -> return 0+    `E.catch` \(_ :: IOException) -> return 0
crypto-random.cabal view
@@ -1,5 +1,5 @@ Name:                crypto-random-Version:             0.0.2+Version:             0.0.3 Description:         Simple cryptographic random related types License:             BSD3 License-file:        LICENSE