aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaúl Benencia <rul@kalgan.cc>2013-08-20 20:55:17 -0300
committerRaúl Benencia <rul@kalgan.cc>2013-08-20 20:55:17 -0300
commit0e6e62f317fc8a509eb127744620c6cb8e32f915 (patch)
tree94e05292603b88128d7b7cfd2533f020fcc7b9ba
parent8ac28e93b9c29cb0ce78ca423c21a3f887f23aa5 (diff)
Added a couple of TODOs
-rw-r--r--Screen.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Screen.hs b/Screen.hs
index 18030f9..8d83ed7 100644
--- a/Screen.hs
+++ b/Screen.hs
@@ -58,6 +58,7 @@ screenLoop st = do
else return ()
-- | Handle an event
+-- TODO: Handle the events in a cleaner way.
handleEvent :: MState -> Curses MState
handleEvent st = loop where
loop = do
@@ -109,6 +110,7 @@ drawIndexHelper origRow origColumn rows columns ((fp, _, msg):ts) = do
else return ()
-- | Helper function of drawMode
+-- TODO: Make helpers functions to draw header and body in a separate way.
drawEmailHelper st = do
let fs = getFields $ selectedEmail st
let cropWith xs = normalizeLen $ (fromIntegral . scrColumns $ st) - (length xs)
@@ -139,7 +141,6 @@ clearMain rows columns = do
then drawEmptyLine $ currentRow + 1
else return ()
-
-- | Convert a String to multiple Strings, cropped by the maximum column
-- size if necessary.
formatBody :: String -> Int -> [String]
nihil fit ex nihilo