diff options
author | joe <joe@jerkface.net> | 2017-10-30 18:06:49 -0400 |
---|---|---|
committer | joe <joe@jerkface.net> | 2017-10-30 18:06:49 -0400 |
commit | 23767c2ebc53a2853c0065e727c3bbbf40cd5a83 (patch) | |
tree | cbf80574e76244acafad256f031c944fdbfc33ed /Announcer.hs | |
parent | dd0e843d33a3e483e1699697fb3a25e9d76351dc (diff) |
WIP: a command (recurring announcements) (Part 3)
Diffstat (limited to 'Announcer.hs')
-rw-r--r-- | Announcer.hs | 8 |
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 | |||
11 | stopAnnouncer :: Announcer -> IO () | 11 | stopAnnouncer :: Announcer -> IO () |
12 | stopAnnouncer _ = return () | 12 | stopAnnouncer _ = return () |
13 | 13 | ||
14 | data AnnounceMethod ni = forall nid addr r tok a. AnnounceMethod | 14 | data 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 | ||
19 | schedule :: Announcer -> AnnounceMethod ni -> info -> IO () | 19 | schedule :: Announcer -> AnnounceMethod ni r -> r -> IO () |
20 | schedule _ _ _ = return () | 20 | schedule _ _ _ = return () |
21 | 21 | ||
22 | cancel :: Announcer -> AnnounceMethod ni -> info -> IO () | 22 | cancel :: Announcer -> AnnounceMethod ni r -> r -> IO () |
23 | cancel _ _ _ = return () | 23 | cancel _ _ _ = return () |