HORIZON HASKELLDocslts/ghc-9.14.xb2f3bfd2026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · b2f3bfd · 2026-10-11

Moduleauto-update-0.2.8Haskell2010

Control.AutoUpdate.Internal

  • 1 type
  • 2 values

Debugging

3 declarations
valuemkClosableAutoUpdate :: UpdateSettings a -> IO (IO a, IO ())
#
Example7 expressions
iref <- newIORef (0 :: Int)action = modifyIORef iref (+ 1) >> readIORef iref(getValue, closeState) <- mkClosableAutoUpdate $ defaultUpdateSettings { updateFreq = 200_000, updateAction = action }getValue1threadDelay 100_000 >> getValue1threadDelay 200_000 >> getValue2closeState