diff --git a/changelog b/changelog index 7fc3ea6..996b918 100644 --- a/changelog +++ b/changelog @@ -1,3 +1,5 @@ +# 0.7.1 +* expose fork job, Jappie Klooster (@jappeace) # 0.7.0 * Fix time parsing error (#41), Julien Debon (@Sir4ur0n) # 0.6.2 diff --git a/cron.cabal b/cron.cabal index 616e649..da206ee 100644 --- a/cron.cabal +++ b/cron.cabal @@ -1,5 +1,5 @@ Name: cron -Version: 0.7.0 +Version: 0.7.1 Description: Cron data structure and Attoparsec parser. The idea is to embed it in larger systems which want to roll their own scheduled tasks in a format that people @@ -58,7 +58,7 @@ library default-language: Haskell2010 build-depends: base >= 4 && < 5 , attoparsec >= 0.10 - , text >= 0.11 && < 2 + , text >= 0.11 && < 3 , time >= 1.4 , old-locale >= 1.0 , mtl >= 2.0.1 diff --git a/src/System/Cron/Schedule.hs b/src/System/Cron/Schedule.hs index 3a93a0b..d2f6892 100644 --- a/src/System/Cron/Schedule.hs +++ b/src/System/Cron/Schedule.hs @@ -31,6 +31,7 @@ module System.Cron.Schedule ( Job (..) + , forkJob , ScheduleError (..) , Schedule , ScheduleT (..) @@ -49,6 +50,7 @@ module System.Cron.Schedule import Control.Applicative #endif import Control.Concurrent +import Control.Monad (forever, when, void) import Control.Monad.Except import Control.Monad.Identity import Control.Monad.State