aboutsummaryrefslogtreecommitdiff
path: root/Assistant/Common.hs
blob: c1a346e75ce9bc3aaf139d747da0d667b434e3d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{- Common infrastructure for the git-annex assistant threads.
 -
 - Copyright 2012 Joey Hess <joey@kitenet.net>
 -
 - Licensed under the GNU GPL version 3 or higher.
 -}

module Assistant.Common (
	module X,
	ThreadName,
	debug
) where

import Common.Annex as X

import System.Log.Logger

type ThreadName = String

debug :: ThreadName -> [String] -> IO ()
debug threadname ws = debugM threadname $ unwords $ (threadname ++ ":") : ws