diff options
author | Joey Hess <joeyh@joeyh.name> | 2017-12-14 11:26:59 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2017-12-14 11:26:59 -0400 |
commit | c51fa6c80358b9029c07ebe788df6b2262f5b745 (patch) | |
tree | fdf887a19c99b951783d3c4532628aa68f74017c /Types | |
parent | 5173d94a051a56d16aa600dcdb941e7af4c6d878 (diff) |
reorg
Diffstat (limited to 'Types')
-rw-r--r-- | Types/Transfer.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Types/Transfer.hs b/Types/Transfer.hs index 1b54f8511..aa76bf7ec 100644 --- a/Types/Transfer.hs +++ b/Types/Transfer.hs @@ -13,6 +13,7 @@ import Types import Types.Remote (Verification(..)) import Utility.PID import Utility.QuickCheck +import Utility.Url import Data.Time.Clock.POSIX import Control.Concurrent @@ -91,3 +92,12 @@ instance Observable (Maybe a) where observeBool (Just _) = True observeBool Nothing = False observeFailure = Nothing + +class Transferrable t where + descTransfrerrable :: t -> Maybe String + +instance Transferrable AssociatedFile where + descTransfrerrable (AssociatedFile af) = af + +instance Transferrable URLString where + descTransfrerrable = Just |