summaryrefslogtreecommitdiffstats
path: root/test3.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 /test3.hs
parent0299524420701b1225c273c7ceff1f8093a3028b (diff)
Notmuch.getThread -> IO (Forest Message)
Diffstat (limited to 'test3.hs')
-rw-r--r--test3.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test3.hs b/test3.hs
index d122ce5..a7dc661 100644
--- a/test3.hs
+++ b/test3.hs
@@ -158,7 +158,7 @@ main' query =
TVSearchResult the_sr = Z.label sr
ThreadID tid = searchThread the_sr
- t_ <- return . (:[]) . fromMessageTree =<< getThread tid
+ t_ <- return . fromMessageForest =<< getThread tid
let loc' = Z.modifyTree (\(Node l _) -> Node l t_) sr
rec q { cursor = select (==Z.label cursor) loc' }
@@ -173,7 +173,7 @@ main' query =
t_ <-
if open
then return []
- else return . (:[]) . fromMessageTree =<< getThread tid
+ else return . fromMessageForest =<< getThread tid
let loc' = Z.modifyTree (\(Node l _) -> Node l t_) loc
rec q { cursor = select (==Z.label cursor) loc' }