diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2023-04-05 22:03:43 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2023-04-05 22:03:43 +0200 |
commit | 7a9ef992afa96ed177ae9a4a67d302017ab73852 (patch) | |
tree | 4c53058ce2ae8015db653326996bfc17a906e72e /src/Main.hs | |
parent | a8893fbcfa06044e7f999916c4dcc6a2dc907f75 (diff) |
Fix non-exhaustive pattern match warnings
Diffstat (limited to 'src/Main.hs')
-rw-r--r-- | src/Main.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Main.hs b/src/Main.hs index 295a486..4a2d910 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -102,7 +102,8 @@ main = do Nothing -> error "ref does not exist" Just ref -> print $ storedGeneration (wrappedLoad ref :: Stored Object) - ["update-identity"] -> runReaderT updateSharedIdentity =<< loadLocalStateHead st + ["update-identity"] -> either fail return <=< runExceptT $ do + runReaderT updateSharedIdentity =<< loadLocalStateHead st ("update-identity" : srefs) -> do sequence <$> mapM (readRef st . BC.pack) srefs >>= \case |