split cost out into its own module
Added a function to insert a new cost into a list, which could be used to asjust costs after a drag and drop.
This commit is contained in:
parent
672fb29b06
commit
19c0a0d5b1
18 changed files with 103 additions and 37 deletions
|
@ -17,6 +17,7 @@ import Types.Key
|
|||
import Types.UUID
|
||||
import Types.Meters
|
||||
import Types.GitConfig
|
||||
import Config.Cost
|
||||
|
||||
type RemoteConfigKey = String
|
||||
type RemoteConfig = M.Map RemoteConfigKey String
|
||||
|
@ -46,7 +47,7 @@ data RemoteA a = Remote {
|
|||
-- each Remote has a human visible name
|
||||
name :: String,
|
||||
-- Remotes have a use cost; higher is more expensive
|
||||
cost :: Int,
|
||||
cost :: Cost,
|
||||
-- Transfers a key to the remote.
|
||||
storeKey :: Key -> AssociatedFile -> MeterUpdate -> a Bool,
|
||||
-- retrieves a key's contents to a file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue