summaryrefslogtreecommitdiff
path: root/Database
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-01-05 17:33:48 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-01-05 17:33:48 -0400
commit8728cd00ff2e9b9c40325a7e700ab25644bb347b (patch)
tree520b0971ba120e8c4f92bfd724edbc1f21d3ae79 /Database
parent903241502a6ad1a4845ac2d131ef7fc2b547400d (diff)
clarify absPathFrom
The repo path is typically relative, not absolute, so providing it to absPathFrom doesn't yield an absolute path. This is not a bug, just unclear documentation. Indeed, there seem to be no reason to simplifyPath here, which absPathFrom does, so instead just combine the repo path and the TopFilePath. Also, removed an export of the TopFilePath constructor; asTopFilePath is provided to construct one as-is.
Diffstat (limited to 'Database')
-rw-r--r--Database/Keys.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Database/Keys.hs b/Database/Keys.hs
index 8cea5c940..38d9742df 100644
--- a/Database/Keys.hs
+++ b/Database/Keys.hs
@@ -188,7 +188,7 @@ getAssociatedFiles' sk = readDb $ do
l <- select $ from $ \r -> do
where_ (r ^. AssociatedKey ==. val sk)
return (r ^. AssociatedFile)
- return $ map (TopFilePath . unValue) l
+ return $ map (asTopFilePath . unValue) l
{- Gets any keys that are on record as having a particular associated file.
- (Should be one or none but the database doesn't enforce that.) -}