diff options
author | Joey Hess <joey@kitenet.net> | 2011-08-21 13:17:12 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-08-21 13:17:12 -0400 |
commit | 06ce5741365ae4602ca64204729e6a23705059ee (patch) | |
tree | 0cfff51a9cc7868a9e0b533fd87672a789e08494 /Config.hs | |
parent | 1c25df3c1b19ad8406cbe2aef9dfd215ef9f5ce8 (diff) |
tweak
Diffstat (limited to 'Config.hs')
-rw-r--r-- | Config.hs | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -51,11 +51,10 @@ remoteCost r def = do else getConfig r "cost" "" where safeparse v - | null ws || null ps = def - | otherwise = (fst . head) ps + | null ws = def + | otherwise = fromMaybe def $ readMaybe $ head ws where ws = words v - ps = reads $ head ws cheapRemoteCost :: Int cheapRemoteCost = 100 |