From bf460a0a98d7e4c7f4eac525fcf300629db582b6 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 8 Nov 2011 15:34:10 -0400 Subject: reorder repo parameters last Many functions took the repo as their first parameter. Changing it consistently to be the last parameter allows doing some useful things with currying, that reduce boilerplate. In particular, g <- gitRepo is almost never needed now, instead use inRepo to run an IO action in the repo, and fromRepo to get a value from the repo. This also provides more opportunities to use monadic and applicative combinators. --- Common/Annex.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Common') diff --git a/Common/Annex.hs b/Common/Annex.hs index f802ec253..6b5bc31de 100644 --- a/Common/Annex.hs +++ b/Common/Annex.hs @@ -10,6 +10,6 @@ module Common.Annex ( import Common import Types import Types.UUID (toUUID, fromUUID) -import Annex (gitRepo) +import Annex (gitRepo, inRepo, fromRepo) import Locations import Messages -- cgit v1.2.3