summaryrefslogtreecommitdiff
path: root/Types/NumCopies.hs
blob: b93fcf96884faa5a3447a6ad14c8d9a81a3dbd53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{- git-annex numcopies type
 -
 - Copyright 2014 Joey Hess <joey@kitenet.net>
 -
 - Licensed under the GNU GPL version 3 or higher.
 -}

module Types.NumCopies where

newtype NumCopies = NumCopies Int
	deriving (Ord, Eq)

fromNumCopies :: NumCopies -> Int
fromNumCopies (NumCopies n) = n