fix test suite build
This commit is contained in:
parent
0c9c14b52f
commit
bf70bbdbfc
3 changed files with 14 additions and 9 deletions
6
Annex.hs
6
Annex.hs
|
@ -18,6 +18,7 @@ module Annex (
|
|||
changeState,
|
||||
setFlag,
|
||||
setField,
|
||||
setOutput,
|
||||
getFlag,
|
||||
getField,
|
||||
addCleanup,
|
||||
|
@ -148,6 +149,11 @@ addCleanup :: String -> Annex () -> Annex ()
|
|||
addCleanup uid a = changeState $ \s ->
|
||||
s { cleanup = M.insertWith' const uid a $ cleanup s }
|
||||
|
||||
{- Sets the type of output to emit. -}
|
||||
setOutput :: OutputType -> Annex ()
|
||||
setOutput o = changeState $ \s ->
|
||||
s { output = (output s) { outputType = o } }
|
||||
|
||||
{- Checks if a flag was set. -}
|
||||
getFlag :: String -> Annex Bool
|
||||
getFlag flag = fromMaybe False . M.lookup flag <$> getState flags
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue