summaryrefslogtreecommitdiffhomepage
path: root/Types.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-08-07 12:09:53 -0400
committerJoey Hess <joeyh@joeyh.name>2016-08-07 12:09:53 -0400
commit6205bbac7abc919371a5e7af9e4ba1a8d70de85e (patch)
tree668f3247182d01f025ce9122f6b495def240eb71 /Types.hs
parent016877aa55764d14af3c16645d64fd95bf6a2da1 (diff)
downloadkeysafe-6205bbac7abc919371a5e7af9e4ba1a8d70de85e.tar.gz
basic password entropy calculation
Diffstat (limited to 'Types.hs')
-rw-r--r--Types.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Types.hs b/Types.hs
index 3b5d39f..8787273 100644
--- a/Types.hs
+++ b/Types.hs
@@ -1,4 +1,4 @@
-{-# LANGUAGE OverloadedStrings #-}
+{-# LANGUAGE OverloadedStrings, GeneralizedNewtypeDeriving #-}
module Types where
@@ -8,10 +8,12 @@ import Raaz.Core.Encode
import Data.Monoid
import Data.Word
import Data.Time.Clock
+import Data.String
import Text.Read
-- | A password used to encrypt a key stored in keysafe.
newtype Password = Password B.ByteString
+ deriving (IsString)
-- | A name associated with a key stored in keysafe.
newtype Name = Name B.ByteString