Skip to content

Commit

Permalink
Fix a couple of hlint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
alip committed Jun 11, 2010
1 parent e5108cd commit ccd3f5a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Qoropa/Buffer/Folder.hs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ load _ _ _ [] = return ()
load (ref, lock) mvar db ((name, term):xs) = do
Lock.with lock $ do
buf <- readIORef ref
msg <- (themeFormatLoading (bufferTheme buf)) (name, term)
msg <- themeFormatLoading (bufferTheme buf) (name, term)
writeIORef ref buf { bufferStatusMessage = (bufferStatusMessage buf) { sMessage = msg }
}
putMVar mvar Redraw
Expand All @@ -270,7 +270,7 @@ load (ref, lock) mvar db ((name, term):xs) = do
loadOne ref (name, term) count

buf <- readIORef ref
msg <- (themeFormatLoadingDone (bufferTheme buf)) (name, term)
msg <- themeFormatLoadingDone (bufferTheme buf) (name, term)
writeIORef ref buf { bufferStatusMessage = (bufferStatusMessage buf) { sMessage = msg }
}

Expand Down
4 changes: 2 additions & 2 deletions src/Qoropa/Buffer/Search.hs
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ new :: (IORef Search, Lock) -> MVar UIEvent -> FilePath -> String -> IO ()
new (ref, lock) mvar fp term = do
Lock.with lock $ do
buf <- readIORef ref
msg <- (themeFormatLoading (bufferTheme buf)) term
msg <- themeFormatLoading (bufferTheme buf) term
writeIORef ref buf { bufferStatusBar = (bufferStatusBar buf) { sBarTerm = term }
, bufferStatusMessage = (bufferStatusMessage buf) { sMessage = msg }
}
Expand All @@ -312,7 +312,7 @@ new (ref, lock) mvar fp term = do

Lock.with lock $ do
buf <- readIORef ref
msg <- (themeFormatLoadingDone (bufferTheme buf)) term
msg <- themeFormatLoadingDone (bufferTheme buf) term
writeIORef ref buf { bufferStatusMessage = (bufferStatusMessage buf) { sMessage = msg }
}
putMVar mvar Redraw
Expand Down
2 changes: 1 addition & 1 deletion src/Qoropa/Config.hs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ folderDrawLine attr selected line =
else snd $ Folder.attrCount attr
myNameFormat = printf "%-20s" (Folder.folderName line)
myCountFormat = printf "%7d" (Folder.folderCount line)
myTermFormat = (Folder.folderTerm line)
myTermFormat = Folder.folderTerm line

folderDrawStatusBar :: Folder.Attributes -> Folder.StatusBar -> Image
folderDrawStatusBar attr bar =
Expand Down
2 changes: 1 addition & 1 deletion src/Qoropa/UI.hs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ exit ui = do
mainLoop :: QoropaConfig -> UI -> IO ()
mainLoop conf ui = do
path <- expandTilde (databasePath conf)
putMVar (uiEvent ui) $ NewFolder
putMVar (uiEvent ui) NewFolder
eventLoop path
where
eventLoop :: FilePath -> IO ()
Expand Down

0 comments on commit ccd3f5a

Please sign in to comment.