crypto-random-effect 0.2.0.3 → 0.2.0.4
raw patch · 2 files changed
+2/−8 lines, 2 filesdep ~crypto-random
Dependency ranges changed: crypto-random
Files
crypto-random-effect.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/ name: crypto-random-effect-version: 0.2.0.3+version: 0.2.0.4 synopsis: A random effect using crypto-random description: Any help (especially documentation) is welcome homepage: https://github.com/ibotty/crypto-random-effect@@ -22,7 +22,7 @@ -- other-extensions: build-depends: base >=4.6 && <5 , bytestring <= 0.11- , crypto-random >=0.0.7 && <0.1+ , crypto-random >=0.0.8 && <0.1 , extensible-effects ==1.4.* || ==1.7.* , securemem ==0.1.* , transformers >=0.3 && <0.5
src/Crypto/Random/Effect.hs view
@@ -1,11 +1,9 @@ -- | An effect that can generate random bytes. -- -- It is essentially a 'State' monad with a given 'CPRG'.-{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE MultiParamTypeClasses #-}-{-# LANGUAGE StandaloneDeriving #-} {-# LANGUAGE TypeOperators #-} module Crypto.Random.Effect ( RNG@@ -34,7 +32,6 @@ import Control.Eff.Reader.Strict import Data.ByteString (ByteString) import Data.SecureMem (SecureMem)-import Data.Typeable (Typeable) import Crypto.Random (CPRG, EntropyPool, SystemRNG) import qualified Crypto.Random as C @@ -42,9 +39,6 @@ data RNG instance SetMember RNG (State gen) (State gen :> a)--deriving instance Typeable SystemRNG-deriving instance Typeable EntropyPool -- | Run the effect using 'SystemRNG'. runSystemRNG