summaryrefslogtreecommitdiff
path: root/TypeInternals.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2010-11-22 15:46:57 -0400
committerGravatar Joey Hess <joey@kitenet.net>2010-11-22 15:46:57 -0400
commit57adb0347bf4eb71ab846a2947680a20263449a2 (patch)
treeeb9df0ec57462a2a45bf2ff0d6c1d05d5677634f /TypeInternals.hs
parentfd11b5a3e5355a68f182a60eda7916d57e141366 (diff)
hlint tweaks
Remotes.hs next, and also Backend/* and Command/*
Diffstat (limited to 'TypeInternals.hs')
-rw-r--r--TypeInternals.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/TypeInternals.hs b/TypeInternals.hs
index 3078224b1..bcef4ee0a 100644
--- a/TypeInternals.hs
+++ b/TypeInternals.hs
@@ -51,10 +51,10 @@ instance Show Key where
show (Key (b, k)) = b ++ ":" ++ k
instance Read Key where
- readsPrec _ s = [((Key (b,k)) ,"")]
+ readsPrec _ s = [(Key (b,k), "")]
where
l = split ":" s
- b = l !! 0
+ b = head l
k = join ":" $ drop 1 l
backendName :: Key -> BackendName
@@ -81,4 +81,4 @@ data Backend = Backend {
}
instance Show Backend where
- show backend = "Backend { name =\"" ++ (name backend) ++ "\" }"
+ show backend = "Backend { name =\"" ++ name backend ++ "\" }"