HORIZON HASKELLDocslts/ghc-10.0.xaa25b892026-10-10Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · aa25b89 · 2026-10-10

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