New version 0.2.1
Fixes
This commit is contained in:
parent
8e383dde3f
commit
f396586033
@ -1,5 +1,5 @@
|
|||||||
name: alea
|
name: alea
|
||||||
version: 0.2.0.0
|
version: 0.2.1.0
|
||||||
synopsis: a diceware passphrase generator
|
synopsis: a diceware passphrase generator
|
||||||
description:
|
description:
|
||||||
|
|
||||||
|
7
main.hs
7
main.hs
@ -59,7 +59,6 @@ exec args@Args{..} =
|
|||||||
randWords dictSize phraseLength >>= putStrLn . unwords . map dice'
|
randWords dictSize phraseLength >>= putStrLn . unwords . map dice'
|
||||||
when (phrases > 1) $ exec args {phrases = phrases - 1}
|
when (phrases > 1) $ exec args {phrases = phrases - 1}
|
||||||
where
|
where
|
||||||
-- helpers
|
(dict, dictSize) = (parseDiceware dictionary, length dict)
|
||||||
dice n = readDiceware (parseDiceware dictionary) (read n :: Int)
|
dice n = readDiceware dict (read n :: Int)
|
||||||
dice' n = readDiceware' (parseDiceware dictionary) n
|
dice' n = readDiceware' dict n
|
||||||
dictSize = length $ parseDiceware dictionary
|
|
||||||
|
Loading…
Reference in New Issue
Block a user