diff options
author | 2012-10-29 19:20:54 -0400 | |
---|---|---|
committer | 2012-10-29 19:20:54 -0400 | |
commit | c65199b29e85cb145d460b9e48fe2fc4a10aeb09 (patch) | |
tree | d46f57dc2e021efd8080bc02c9231c603e00963e /Assistant/Types | |
parent | cb504374b53a940ea12feeb5ba91dd78466be455 (diff) |
split BranchChange and lifted
Diffstat (limited to 'Assistant/Types')
-rw-r--r-- | Assistant/Types/BranchChange.hs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Assistant/Types/BranchChange.hs b/Assistant/Types/BranchChange.hs new file mode 100644 index 000000000..399abee54 --- /dev/null +++ b/Assistant/Types/BranchChange.hs @@ -0,0 +1,19 @@ +{- git-annex assistant git-annex branch change tracking + - + - Copyright 2012 Joey Hess <joey@kitenet.net> + - + - Licensed under the GNU GPL version 3 or higher. + -} + +module Assistant.Types.BranchChange where + +import Control.Concurrent.MSampleVar +import Common.Annex + +newtype BranchChangeHandle = BranchChangeHandle (MSampleVar ()) + +newBranchChangeHandle :: IO BranchChangeHandle +newBranchChangeHandle = BranchChangeHandle <$> newEmptySV + +fromBranchChangeHandle :: BranchChangeHandle -> MSampleVar () +fromBranchChangeHandle (BranchChangeHandle v) = v |