summaryrefslogtreecommitdiff
path: root/Types/Group.hs
blob: 88bc3520773dd30b7280f83b3d6b9ca28d5e9fea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{- git-annex repo groups
 -
 - Copyright 2012 Joey Hess <joey@kitenet.net>
 -
 - Licensed under the GNU GPL version 3 or higher.
 -}

module Types.Group (
	Group,
	GroupMap(..),
	emptyGroupMap
) where

import Types.UUID

import qualified Data.Map as M
import qualified Data.Set as S

type Group = String

data GroupMap = GroupMap
	{ groupsByUUID :: M.Map UUID (S.Set Group)
	, uuidsByGroup :: M.Map Group (S.Set UUID)
	}

emptyGroupMap :: GroupMap
emptyGroupMap = GroupMap M.empty M.empty