File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1691,17 +1691,17 @@ getHistoryFile :: FilePath -> FilePath
1691
1691
getHistoryFile cachedir = cachedir ++ " /prompt-history"
1692
1692
1693
1693
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
1696
1696
where
1697
1697
readHist = do
1698
1698
let path = getHistoryFile cachedir
1699
1699
xs <- withFile path ReadMode hGetLine
1700
1700
readIO xs
1701
1701
1702
1702
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
1705
1705
let path = getHistoryFile cachedir
1706
1706
filtered = M. filter (not . null ) hist
1707
1707
writeFile path (show filtered) `E.catch` \ (SomeException e) ->
You can’t perform that action at this time.
0 commit comments