fix build with old ghc
This commit is contained in:
parent
c2d9f4397e
commit
16c6333f09
2 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ runFullProto :: RunMode -> P2PConnection -> Proto a -> Annex (Either String a)
|
|||
runFullProto runmode conn = go
|
||||
where
|
||||
go :: RunProto Annex
|
||||
go (Pure v) = pure (Right v)
|
||||
go (Pure v) = return (Right v)
|
||||
go (Free (Net n)) = runNet conn go n
|
||||
go (Free (Local l)) = runLocal runmode go l
|
||||
|
||||
|
|
|
@ -85,7 +85,7 @@ runNetProto :: P2PConnection -> Proto a -> IO (Either String a)
|
|||
runNetProto conn = go
|
||||
where
|
||||
go :: RunProto IO
|
||||
go (Pure v) = pure (Right v)
|
||||
go (Pure v) = return (Right v)
|
||||
go (Free (Net n)) = runNet conn go n
|
||||
go (Free (Local _)) = return (Left "unexpected annex operation attempted")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue