2014-01-21 20:08:19 +00:00
|
|
|
{- git-annex numcopies type
|
|
|
|
-
|
2015-01-21 16:50:09 +00:00
|
|
|
- Copyright 2014 Joey Hess <id@joeyh.name>
|
2014-01-21 20:08:19 +00:00
|
|
|
-
|
|
|
|
- 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
|