drop an unnecessart liftIO
the liftM on its own can lift all the way into IO.
This commit is contained in:
parent
021e8e1e0e
commit
e3ca08fad8
1 changed files with 1 additions and 1 deletions
2
Annex.hs
2
Annex.hs
|
@ -84,7 +84,7 @@ newState gitrepo = AnnexState
|
||||||
|
|
||||||
{- Create and returns an Annex state object for the specified git repo. -}
|
{- Create and returns an Annex state object for the specified git repo. -}
|
||||||
new :: Git.Repo -> IO AnnexState
|
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 -}
|
{- performs an action in the Annex monad -}
|
||||||
run :: AnnexState -> Annex a -> IO (a, AnnexState)
|
run :: AnnexState -> Annex a -> IO (a, AnnexState)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue