summaryrefslogtreecommitdiff
path: root/src/Attach.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2022-07-17 22:51:32 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2022-07-26 21:55:45 +0200
commit6c13b1285605020bb3c510dd1862d2d8d9828337 (patch)
treed851f7c3ef20ff8016a778e01f2321e00526cbeb /src/Attach.hs
parent97427b2f49daa9d86661ad999d4da17ac7a4acb4 (diff)
Generalize head updates to provided MonadIO instances
Diffstat (limited to 'src/Attach.hs')
-rw-r--r--src/Attach.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Attach.hs b/src/Attach.hs
index c27b383..0e32294 100644
--- a/src/Attach.hs
+++ b/src/Attach.hs
@@ -52,7 +52,7 @@ instance PairingResult AttachIdentity where
guard $ iddPrev (fromStored $ signedData $ fromStored $ idData identity) == [curid]
return (identity, keys)
- pairingFinalizeRequest (identity, keys) = updateLocalState_ $ \slocal -> do
+ pairingFinalizeRequest (identity, keys) = updateLocalState_ $ \slocal -> liftIO $ do
let owner = finalOwner identity
st = storedStorage slocal
pkeys <- mapM (copyStored st) [ idKeyIdentity owner, idKeyMessage owner ]