wordpass 1.0.0.0 → 1.0.0.1
raw patch · 5 files changed
+19/−9 lines, 5 filesdep ~basePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base
API changes (from Hackage documentation)
Files
- Data/Random/Choice.hs +1/−2
- Data/Random/RVar/Enum.hs +5/−2
- Data/Random/Vector.hs +3/−2
- changelog +6/−0
- wordpass.cabal +4/−3
Data/Random/Choice.hs view
@@ -1,8 +1,7 @@ {-# LANGUAGE FlexibleContexts #-}--- | Main module generating passwords.+-- | Random choice between two alternatives of inequal probability. module Data.Random.Choice(randomChoice) where -import Data.Ratio import Data.Random.RVar import Data.Random.Distribution import Data.Random.Distribution.Uniform
Data/Random/RVar/Enum.hs view
@@ -1,7 +1,10 @@-{-# LANGUAGE OverlappingInstances, MultiParamTypeClasses, FlexibleInstances #-}+{-# LANGUAGE OverlappingInstances #-}+{-# LANGUAGE MultiParamTypeClasses #-}+{-# LANGUAGE FlexibleInstances #-}+-- | Provides a random variable (@RVar@) instance for any @Enum@ instance.+-- Very convenient, even if may overlap with more specific instances for integer types. module Data.Random.RVar.Enum() where -import Data.Random.RVar import Data.Random.Distribution import Data.Random.Distribution.Uniform import Control.Applicative((<$>))
Data/Random/Vector.hs view
@@ -1,3 +1,4 @@+-- | Provides a convenient way to pick a random element of a vector. module Data.Random.Vector(randomElement) where import Data.Random.RVar@@ -6,6 +7,6 @@ import Control.Applicative -- | Take a random element of a vector.-randomElement :: V.Vector a -> RVar a-randomElement words = (words V.!) <$> uniform 0 (V.length words - 1)+randomElement :: V.Vector a -> RVar a+randomElement elements = (elements V.!) <$> uniform 0 (V.length elements - 1)
changelog view
@@ -1,5 +1,11 @@ -*-Changelog-*- +1.0.0.1 Dec 2014+ * Relaxed upper bounds for GHC 7.10++1.0.0.0 Oct 2014+ * Stable release.+ 0.5.0.0 Oct 2014 * Expose library interface.
wordpass.cabal view
@@ -1,5 +1,5 @@ name: wordpass-version: 1.0.0.0+version: 1.0.0.1 synopsis: Dictionary-based password generator description: This script reads dict word lists and generates word-based passwords. Not unlike <http://xkcd.com/936/ Xkcd>.@@ -22,6 +22,7 @@ extra-source-files: README.md changelog cabal-version: >=1.10 stability: stable+tested-with: GHC==7.6.3,GHC==7.8.3 source-repository head type: git@@ -31,7 +32,7 @@ main-is: WordPass.hs other-modules: Data.Random.RVar.Enum, Data.Random.Vector, Data.Random.Choice, Text.WordPass other-extensions: OverlappingInstances, MultiParamTypeClasses, FlexibleInstances- build-depends: base >=4.6 && <4.8,+ build-depends: base >=4.6 && <4.9, text >=1.1 && <1.2, containers >=0.5 && <0.6, random-fu >=0.2 && <0.3,@@ -49,7 +50,7 @@ library exposed-modules: Data.Random.RVar.Enum, Data.Random.Vector, Data.Random.Choice, Text.WordPass other-extensions: OverlappingInstances, MultiParamTypeClasses, FlexibleInstances- build-depends: base >=4.6 && <4.8,+ build-depends: base >=4.6 && <4.9, text >=1.1 && <1.2, containers >=0.5 && <0.6, random-fu >=0.2 && <0.3,