Skip to content

Commit 51d8d1d

Browse files
committed
fix a warning
1 parent 3a15387 commit 51d8d1d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

example/Example.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ main = do
2626
withConsoleLogger Info $ withLabel ("logger", "console") run
2727

2828
-- log to a file
29-
withTempFile "." "logfile.log" $ \f h do
29+
withTempFile "." "logfile.log" $ \file h do
3030
hClose h
31-
withFileLogger f Info $ withLabel ("logger", "file") run
32-
readFile f >>= putStrLn
31+
withFileLogger file Info $ withLabel ("logger", "file") run
32+
readFile file >>= putStrLn
3333

3434
where
3535
f = withLevel Debug $ logg Debug "debug f"

0 commit comments

Comments
 (0)