summaryrefslogtreecommitdiff
path: root/Presence
diff options
context:
space:
mode:
Diffstat (limited to 'Presence')
-rw-r--r--Presence/ConfigFiles.hs5
1 files changed, 2 insertions, 3 deletions
diff --git a/Presence/ConfigFiles.hs b/Presence/ConfigFiles.hs
index 6354d841..5682ea94 100644
--- a/Presence/ConfigFiles.hs
+++ b/Presence/ConfigFiles.hs
@@ -13,7 +13,6 @@ import Control.Exception
13import Control.Monad 13import Control.Monad
14import Control.DeepSeq 14import Control.DeepSeq
15import ByteStringOperators () -- For NFData instance 15import ByteStringOperators () -- For NFData instance
16import ControlMaybe
17import Data.List (partition) 16import Data.List (partition)
18import Data.Maybe (catMaybes,isJust) 17import Data.Maybe (catMaybes,isJust)
19 18
@@ -100,12 +99,12 @@ modifyFile (tag,file) user profile test appending = configPath user profile file
100 withFile path WriteMode $ \h -> do 99 withFile path WriteMode $ \h -> do
101 L.hPutStrLn h tag 100 L.hPutStrLn h tag
102 forM_ (catMaybes keepers) (L.hPutStrLn h) 101 forM_ (catMaybes keepers) (L.hPutStrLn h)
103 withJust appending (L.hPutStrLn h) 102 forM_ appending (L.hPutStrLn h)
104 return . not . Prelude.null $ deleted 103 return . not . Prelude.null $ deleted
105 else do 104 else do
106 withFile path WriteMode $ \h -> do 105 withFile path WriteMode $ \h -> do
107 L.hPutStrLn h tag 106 L.hPutStrLn h tag
108 withJust appending (L.hPutStrLn h) 107 forM_ appending (L.hPutStrLn h)
109 return False 108 return False
110 109
111modifySolicited, modifyBuddies, modifyOthers, modifyPending, modifySubscribers 110modifySolicited, modifyBuddies, modifyOthers, modifyPending, modifySubscribers