Created
May 9, 2014 03:54
-
-
Save mwotton/27a81f437b8f88b3ba4d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Net.TimedQueue ( | |
TimedQueue, | |
new, | |
enqueue, | |
dequeue | |
) | |
where | |
import Data.Sequence | |
import Data.Time (UTCTime) | |
data TimedQueue a | |
new :: IO (TimedQueue a) | |
new = undefined | |
enqueue :: TimedQueue a -> (UTCTime,a) -> IO () | |
enqueue = undefined | |
dequeue :: TimedQueue a -> IO a | |
dequeue = undefined |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment