b4cf22a388
I tend to prefer moving toward explicit exception handling, not away from it, but in this case, I think there are good reasons to let checkPresent throw exceptions: 1. They can all be caught in one place (Remote.hasKey), and we know every possible exception is caught there now, which we didn't before. 2. It simplified the code of the Remotes. I think it makes sense for Remotes to be able to be implemented without needing to worry about catching exceptions inside them. (Mostly.) 3. Types.StoreRetrieve.Preparer can only work on things that return a Bool, which all the other relevant remote methods already did. I do not see a good way to generalize that type; my previous attempts failed miserably. |
||
---|---|---|
.. | ||
Availability.hs | ||
Backend.hs | ||
BranchState.hs | ||
CleanupActions.hs | ||
Command.hs | ||
Creds.hs | ||
Crypto.hs | ||
DesktopNotify.hs | ||
Distribution.hs | ||
FileMatcher.hs | ||
GitConfig.hs | ||
Group.hs | ||
Key.hs | ||
KeySource.hs | ||
LockPool.hs | ||
Messages.hs | ||
MetaData.hs | ||
NumCopies.hs | ||
Option.hs | ||
Remote.hs | ||
ScheduledActivity.hs | ||
StandardGroups.hs | ||
StoreRetrieve.hs | ||
TrustLevel.hs | ||
UUID.hs | ||
View.hs |