summaryrefslogtreecommitdiffstats
path: root/Notmuch.hs
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2014-12-25 19:50:11 +0100
committertv <tv@shackspace.de>2014-12-25 19:50:11 +0100
commit8ba04b360b69ad341c1cc42534ea826018eaaced (patch)
tree50f0e7d96c11628a5970a0959c7343cd451e3bbb /Notmuch.hs
parent0299524420701b1225c273c7ceff1f8093a3028b (diff)
Notmuch.getThread -> IO (Forest Message)
Diffstat (limited to 'Notmuch.hs')
-rw-r--r--Notmuch.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Notmuch.hs b/Notmuch.hs
index 309f411..0d02782 100644
--- a/Notmuch.hs
+++ b/Notmuch.hs
@@ -114,7 +114,7 @@ showThread tid = do
Prelude.putStrLn $ showTree $ ttt
-getThread :: String -> IO (Tree Message)
+getThread :: String -> IO (Forest Message)
getThread tid = do
c' <- notmuch [ "show", "--format=json", "--format-version=2"
, "thread:" <> tid ]
@@ -123,7 +123,7 @@ getThread tid = do
Left err -> error err
Right x -> x
--threadsF = map threadForest threads
- ttt = head $ threadForest $ head $ threads
+ ttt = threadForest $ head $ threads
return ttt