entropy 0.2.2.1 → 0.2.2.2
raw patch · 3 files changed
+3/−9 lines, 3 filesdep ~basesetup-changedPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base
API changes (from Hackage documentation)
Files
- Setup.hs +1/−7
- System/Entropy.hs +1/−1
- entropy.cabal +1/−1
Setup.hs view
@@ -1,4 +1,3 @@-{-# LANGUAGE TemplateHaskell #-} import Distribution.Simple import Distribution.Simple.LocalBuildInfo import Distribution.Simple.Setup@@ -10,7 +9,6 @@ import System.Directory import System.FilePath import System.Exit-import Language.Haskell.TH (appE, varE, mkName, conE) main = defaultMainWithHooks hk where@@ -34,11 +32,7 @@ canUseRDRAND :: FilePath -> IO Bool canUseRDRAND cc = do- -- Template haskell to call withTempDirectory in a backward compatible way- -- withTempDirectory normal False "" "testRDRAND" $ \tmpDir -> do - $(if cabalVersion >= Version [1,17,0] []- then appE (appE (varE $ mkName "withTempDirectory") (varE 'normal)) (conE (mkName "False"))- else appE (varE $ mkName "withTempDirectory") (varE 'normal)) "" "testRDRAND" $ \tmpDir -> do+ withTempDirectory normal "" "testRDRAND" $ \tmpDir -> do writeFile (tmpDir ++ "/testRDRAND.c") (unlines [ "#include <stdint.h>" , "int main() {"
System/Entropy.hs view
@@ -5,7 +5,7 @@ Portability: portable Obtain entropy from system sources.- Currently, windows and *nix systems with a /dev/urandom are supported.+ Currently, windows and *nix systems with a @/dev/urandom@ are supported. -} module System.Entropy
entropy.cabal view
@@ -1,5 +1,5 @@ name: entropy-version: 0.2.2.1+version: 0.2.2.2 license: BSD3 license-file: LICENSE copyright: Thomas DuBuisson <thomas.dubuisson@gmail.com>