[Haskell-cafe] What is the good way to work with list comprehension and UTCTime?

Richard O'Keefe ok at cs.otago.ac.nz
Mon Sep 17 00:04:01 CEST 2012


On 15/09/2012, at 5:14 AM, Chris Heller wrote:

> You might want to have a look at the time-recurrence package: http://hackage.haskell.org/package/time-recurrence
> 
> For your simple cases you would do something like:
> 
> Each second:
> 
>     starting (UTCTime ...) $ recur secondly
> 
> Each minute:
> 
>     starting (UTCTime ...) $ recur minutely

Ouch.  Look up "minutely" (my-NEWT-ly) in an English
dictionary.  Look up "secondly" while you're there.




More information about the Haskell-Cafe mailing list