use a newtype for Key
should be more efficient
This commit is contained in:
parent
1b0edc1ab2
commit
4a0fe24f39
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ import Test.QuickCheck
|
||||||
|
|
||||||
type KeyName = String
|
type KeyName = String
|
||||||
type BackendName = String
|
type BackendName = String
|
||||||
data Key = Key (BackendName, KeyName) deriving (Eq, Ord)
|
newtype Key = Key (BackendName, KeyName) deriving (Eq, Ord)
|
||||||
|
|
||||||
data Backend a = Backend {
|
data Backend a = Backend {
|
||||||
-- name of this backend
|
-- name of this backend
|
||||||
|
|
Loading…
Reference in a new issue