summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-08-19 14:36:52 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-08-19 14:36:52 -0400
commite3ca08fad89d6f3b5951da74a8af3631c5ef9604 (patch)
treebe09d498c4a094fcfa21e28ca1972e9b996abccb
parent021e8e1e0e40543f3861ed8fb0fc12cd2be46d46 (diff)
drop an unnecessart liftIO
the liftM on its own can lift all the way into IO.
-rw-r--r--Annex.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Annex.hs b/Annex.hs
index fd7e3b391..46dfc9df5 100644
--- a/Annex.hs
+++ b/Annex.hs
@@ -84,7 +84,7 @@ newState gitrepo = AnnexState
{- Create and returns an Annex state object for the specified git repo. -}
new :: Git.Repo -> IO AnnexState
-new gitrepo = newState `liftM` (liftIO . Git.configRead) gitrepo
+new gitrepo = newState `liftM` Git.configRead gitrepo
{- performs an action in the Annex monad -}
run :: AnnexState -> Annex a -> IO (a, AnnexState)