drop an unnecessart liftIO

the liftM on its own can lift all the way into IO.
This commit is contained in:
Joey Hess 2011-08-19 14:36:52 -04:00
parent 021e8e1e0e
commit e3ca08fad8

View file

@ -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)