git-annex/Assistant/BranchChange.hs

20 lines
520 B
Haskell
Raw Normal View History

{- git-annex assistant git-annex branch change tracking
-
- Copyright 2012 Joey Hess <id@joeyh.name>
-
- Licensed under the GNU GPL version 3 or higher.
-}
module Assistant.BranchChange where
2012-10-29 23:20:54 +00:00
import Assistant.Common
import Assistant.Types.BranchChange
2012-10-29 23:20:54 +00:00
import Control.Concurrent.MSampleVar
2012-10-29 23:20:54 +00:00
branchChanged :: Assistant ()
branchChanged = flip writeSV () <<~ (fromBranchChangeHandle . branchChangeHandle)
2012-10-29 23:20:54 +00:00
waitBranchChange :: Assistant ()
waitBranchChange = readSV <<~ (fromBranchChangeHandle . branchChangeHandle)