Skip to content

Commit c69d6b5

Browse files
committed
apply hlint recommendations
1 parent 578f314 commit c69d6b5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: XMonad/Prompt.hs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1691,17 +1691,17 @@ getHistoryFile :: FilePath -> FilePath
16911691
getHistoryFile cachedir = cachedir ++ "/prompt-history"
16921692

16931693
readHistory :: XPConfig -> FilePath -> IO History
1694-
readHistory (XPC { historySize = 0 }) cachedir = return emptyHistory
1695-
readHistory conf cachedir = readHist `E.catch` \(SomeException _) -> return emptyHistory
1694+
readHistory (XPC { historySize = 0 }) _ = return emptyHistory
1695+
readHistory _ cachedir = readHist `E.catch` \(SomeException _) -> return emptyHistory
16961696
where
16971697
readHist = do
16981698
let path = getHistoryFile cachedir
16991699
xs <- withFile path ReadMode hGetLine
17001700
readIO xs
17011701

17021702
writeHistory :: XPConfig -> FilePath -> History -> IO ()
1703-
writeHistory (XPC { historySize = 0 }) cachedir hist = return ()
1704-
writeHistory conf cachedir hist = do
1703+
writeHistory (XPC { historySize = 0 }) _ _ = return ()
1704+
writeHistory _ cachedir hist = do
17051705
let path = getHistoryFile cachedir
17061706
filtered = M.filter (not . null) hist
17071707
writeFile path (show filtered) `E.catch` \(SomeException e) ->

0 commit comments

Comments
 (0)