git.iko.soy/typeable/entropy
on main help sign in
Cabal file twiddle, move posix import.
commit4e6984b10086f49946385a8dc58362679a084bb5 authorThomas M. DuBuisson <tommd@galois.com> dateTue 15 Oct 2013, 13:30 (13 years ago) parentbf59481
2 files changed+18−17
System/Entropy.hs+1−1 entropy.cabal+17−16
System/Entropy.hs+1−1
@@ -19,7 +19,6 @@ module System.Entropy
1919import Control.Monad (liftM)
2020import Data.ByteString as B
2121import System.IO.Error (mkIOError, eofErrorType, ioeSetErrorString)
22−import System.Posix (openFd, closeFd, fdReadBuf, OpenMode(..), defaultFileFlags, Fd)
2322import Foreign (allocaBytes)
2423
2524#if defined(isWindows)
@@ -150,6 +149,7 @@ hGetEntropy UseRdRand =
150149
151150#else
152151{- Not windows, assuming nix with a /dev/urandom -}
152+import System.Posix (openFd, closeFd, fdReadBuf, OpenMode(..), defaultFileFlags, Fd)
153153import Foreign.Ptr
154154
155155source :: FilePath
entropy.cabal+17−16
@@ -1,32 +1,33 @@
11name: entropy
2−version: 0.2.2
3−license: BSD3
4−license-file: LICENSE
5−copyright: Thomas DuBuisson <thomas.dubuisson@gmail.com>
6−author: Thomas DuBuisson <thomas.dubuisson@gmail.com>
7−maintainer: Thomas DuBuisson <thomas.dubuisson@gmail.com>
2+version: 0.2.2.3
83description: A platform independent method to obtain cryptographically strong entropy
94 (urandom on Linux, CryptAPI on Windows, patches welcome).
105 Users looking for cryptographically strong (number-theoretically
116 sound) PRNGs should see the 'DRBG' package too!
127synopsis: A platform independent entropy source
8+license: BSD3
9+license-file: LICENSE
10+copyright: Thomas DuBuisson <thomas.dubuisson@gmail.com>
11+author: Thomas DuBuisson <thomas.dubuisson@gmail.com>
12+maintainer: Thomas DuBuisson <thomas.dubuisson@gmail.com>
1313category: Data, Cryptography
1414homepage: https://github.com/TomMD/entropy
1515bug-reports: https://github.com/TomMD/entropy/issues
1616stability: stable
17−build-type: Custom
18−cabal-version: >= 1.6
19−tested-with: GHC == 6.12.1
20−data-files:
21−extra-source-files: ./cbits/rdrand.c
22− , ./cbits/rdrand.h
17+build-type: Custom
18+cabal-version: >=1.10
19+tested-with: GHC == 7.6.3
20+-- data-files:
21+extra-source-files: ./cbits/rdrand.c, ./cbits/rdrand.h, README.md
2322
24−Library
25− Build-Depends: base == 4.*, bytestring
23+library
2624 ghc-options: -Wall -O2
27− hs-source-dirs:
2825 exposed-modules: System.Entropy
29− other-modules:
26+ other-extensions: CPP, ForeignFunctionInterface, BangPatterns, ScopedTypeVariables
27+ build-depends: base == 4.*, bytestring
28+ -- hs-source-dirs:
29+ -- other-modules:
30+ default-language: Haskell2010
3031 if arch(x86_64)
3132 cpp-options: -Darch_x86_64
3233 c-sources: cbits/rdrand.c