auto-update 0.1.1.0 → 0.1.1.1
raw patch · 2 files changed
+2/−2 lines, 2 filesdep ~basePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base
API changes (from Hackage documentation)
Files
- Control/AutoUpdate/Util.hs +1/−1
- auto-update.cabal +1/−1
Control/AutoUpdate/Util.hs view
@@ -10,7 +10,7 @@ #if MIN_VERSION_base(4,6,0) import Data.IORef (atomicModifyIORef') #else-import Data.IORef (atomicModifyIORef)+import Data.IORef (IORef, atomicModifyIORef) -- | Strict version of 'atomicModifyIORef'. This forces both the value stored -- in the 'IORef' as well as the value returned. atomicModifyIORef' :: IORef a -> (a -> (a,b)) -> IO b
auto-update.cabal view
@@ -1,5 +1,5 @@ name: auto-update-version: 0.1.1.0+version: 0.1.1.1 synopsis: Efficiently run periodic, on-demand actions description: A common problem is the desire to have an action run at a scheduled interval, but only if it is needed. For example, instead of having every web request result in a new @getCurrentTime@ call, we'd like to have a single worker thread run every second, updating an @IORef@. However, if the request frequency is less than once per second, this is a pessimization, and worse, kills idle GC.