summaryrefslogtreecommitdiff
path: root/Announcer.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2017-10-30 18:06:49 -0400
committerjoe <joe@jerkface.net>2017-10-30 18:06:49 -0400
commit23767c2ebc53a2853c0065e727c3bbbf40cd5a83 (patch)
treecbf80574e76244acafad256f031c944fdbfc33ed /Announcer.hs
parentdd0e843d33a3e483e1699697fb3a25e9d76351dc (diff)
WIP: a command (recurring announcements) (Part 3)
Diffstat (limited to 'Announcer.hs')
-rw-r--r--Announcer.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Announcer.hs b/Announcer.hs
index babfce06..bc52ee38 100644
--- a/Announcer.hs
+++ b/Announcer.hs
@@ -11,13 +11,13 @@ forkAnnouncer = return Announcer
11stopAnnouncer :: Announcer -> IO () 11stopAnnouncer :: Announcer -> IO ()
12stopAnnouncer _ = return () 12stopAnnouncer _ = return ()
13 13
14data AnnounceMethod ni = forall nid addr r tok a. AnnounceMethod 14data AnnounceMethod ni r = forall nid addr r tok a. AnnounceMethod
15 { aSearch :: Search nid addr tok ni r 15 { aSearch :: Search nid addr tok ni r
16 , aPublish :: (r,tok) -> Maybe ni -> IO (Maybe a) 16 , aPublish :: r -> tok -> Maybe ni -> IO (Maybe a)
17 } 17 }
18 18
19schedule :: Announcer -> AnnounceMethod ni -> info -> IO () 19schedule :: Announcer -> AnnounceMethod ni r -> r -> IO ()
20schedule _ _ _ = return () 20schedule _ _ _ = return ()
21 21
22cancel :: Announcer -> AnnounceMethod ni -> info -> IO () 22cancel :: Announcer -> AnnounceMethod ni r -> r -> IO ()
23cancel _ _ _ = return () 23cancel _ _ _ = return ()