on master help sign in
Remove unneeded AutoUpdate (thanks @kazu-yamamoto)
commit2ec5fbb6be9c6bfec7e82822bc5610eeda996c01 authorMichael Snoyman <michael@snoyman.com> dateWed 16 Jul 2014, 07:38 (12 years ago) parentd8a4a0c
1 file changed−12
auto-update/Control/AutoUpdate.hs−12
auto-update/Control/AutoUpdate.hs−12
@@ -101,18 +101,6 @@ data Status a = AutoUpdated
101101 -- Number of times used since we started/switched
102102 -- off manual updates.
103103
104−-- | A value which will be updated, either via a dedicated thread or when
105−-- requested. Request the current value with @getCurrent@.
106−--
107−-- Since 0.1.0
108−data AutoUpdate a = AutoUpdate
109−-- We use bang patterns on all arguments to ensure no bottoms leak in.
110− { auFreq :: {-# UNPACK #-} !Int
111− , auSpawnThreadhold :: {-# UNPACK #-} !Int
112− , auAction :: !(IO ())
113− , auStatus :: !(IORef (Status a))
114− }
115−
116104-- | Generate an action which will either read from an automatically
117105-- updated value, or run the update action in the current thread.
118106--