change to newtype

This commit is contained in:
Joey Hess 2012-09-13 00:29:25 -04:00
parent ea55609e54
commit a3913f52e5

View file

@ -75,7 +75,7 @@ data SomeAddr = IPv4Addr HostAddress | IPv6Addr HostAddress6
{- This contains the whole secret, just lightly obfuscated to make it not
- too obvious. It's only displayed in the user's web browser. -}
data SecretReminder = SecretReminder [Int]
newtype SecretReminder = SecretReminder [Int]
deriving (Show, Eq, Ord, Read)
toSecretReminder :: T.Text -> SecretReminder