module UnliftIO.AutoUpdate.Types where
import Data.Functor.Identity
data UpdateSettings m a = UpdateSettings
{ forall (m :: * -> *) a. UpdateSettings m a -> Int
updateFreq :: Int
, forall (m :: * -> *) a. UpdateSettings m a -> Int
updateSpawnThreshold :: Int
, forall (m :: * -> *) a. UpdateSettings m a -> m a
updateAction :: m a
, forall (m :: * -> *) a. UpdateSettings m a -> String
updateThreadName :: String
}
defaultUpdateSettings :: UpdateSettings Identity ()
defaultUpdateSettings :: UpdateSettings Identity ()
defaultUpdateSettings =
UpdateSettings
{ updateFreq :: Int
updateFreq = Int
1000000
, updateSpawnThreshold :: Int
updateSpawnThreshold = Int
3
, updateAction :: Identity ()
updateAction = forall (f :: * -> *) a. Applicative f => a -> f a
pure ()
, updateThreadName :: String
updateThreadName = String
"AutoUpdate"
}