minor refactor to app/Util.hs to make hlint happy

This commit is contained in:
Jonathan Lamothe 2023-05-04 14:47:20 -04:00
parent 8be90e9822
commit 85920c26a0
2 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,7 @@
## current
- minor UI tweak
- minor refactoring
## 0.3.1.1

View File

@ -105,9 +105,9 @@ confirm :: String -> Request Bool
confirm x = prompt (x ++ " (y/n): ") $ reqAgree Nothing $ fmap return reqChar
loadFrom :: FilePath -> Request PWDatabase
loadFrom path = reqDefault
loadFrom path = fromMaybe newPWDatabase <$> reqDefault
(reqIO (decodeFileStrict path))
(Just newPWDatabase) >>= (return . fromMaybe newPWDatabase)
(Just newPWDatabase)
save :: S.StateT Status IO ()
save = do