git-annex/Types/TrustLevel.hs
Joey Hess b11a63a860 clean up read/show abuse
Avoid ever using read to parse a non-haskell formatted input string.

show :: Key is arguably still show abuse, but displaying Keys as filenames
is just too useful to give up.
2011-11-08 00:17:54 -04:00

20 lines
352 B
Haskell

{- git-annex trust levels
-
- Copyright 2010 Joey Hess <joey@kitenet.net>
-
- Licensed under the GNU GPL version 3 or higher.
-}
module Types.TrustLevel (
TrustLevel(..),
TrustMap
) where
import qualified Data.Map as M
import Types.UUID
data TrustLevel = SemiTrusted | UnTrusted | Trusted
deriving Eq
type TrustMap = M.Map UUID TrustLevel