use a newtype for Key

should be more efficient
This commit is contained in:
Joey Hess 2011-01-31 11:42:22 -04:00
parent 1b0edc1ab2
commit 4a0fe24f39

View file

@ -14,7 +14,7 @@ import Test.QuickCheck
type KeyName = String
type BackendName = String
data Key = Key (BackendName, KeyName) deriving (Eq, Ord)
newtype Key = Key (BackendName, KeyName) deriving (Eq, Ord)
data Backend a = Backend {
-- name of this backend