bf460a0a98
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.
15 lines
272 B
Haskell
15 lines
272 B
Haskell
module Common.Annex (
|
|
module Common,
|
|
module Types,
|
|
module Types.UUID,
|
|
module Annex,
|
|
module Locations,
|
|
module Messages,
|
|
) where
|
|
|
|
import Common
|
|
import Types
|
|
import Types.UUID (toUUID, fromUUID)
|
|
import Annex (gitRepo, inRepo, fromRepo)
|
|
import Locations
|
|
import Messages
|