summaryrefslogtreecommitdiffhomepage
path: root/UI/Zenity.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-08-12 11:36:44 -0400
committerJoey Hess <joeyh@joeyh.name>2016-08-12 11:36:44 -0400
commita58aea595a780c91bbbe26d2d24a63abcd835994 (patch)
treea75ad4761c57874863616749112990070a7f25fe /UI/Zenity.hs
parentd813bbc0dc7357f23b647a3a05ef61067c53195f (diff)
downloadkeysafe-a58aea595a780c91bbbe26d2d24a63abcd835994.tar.gz
add readline UI
Diffstat (limited to 'UI/Zenity.hs')
-rw-r--r--UI/Zenity.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/UI/Zenity.hs b/UI/Zenity.hs
index 2601f68..5eb4bef 100644
--- a/UI/Zenity.hs
+++ b/UI/Zenity.hs
@@ -27,7 +27,7 @@ zenityUI = UI
, withProgress = progress
}
-name :: Title -> Desc -> (Name -> Maybe String) -> IO (Maybe Name)
+name :: Title -> Desc -> (Name -> Maybe Problem) -> IO (Maybe Name)
name title desc checkproblem = go ""
where
go extradesc = do
@@ -45,7 +45,7 @@ name title desc checkproblem = go ""
Just problem -> go problem
else return Nothing
-password :: Title -> Desc -> (Password -> Maybe String) -> IO (Maybe Password)
+password :: Title -> Desc -> (Password -> Maybe Problem) -> IO (Maybe Password)
password title desc checkproblem = go ""
where
go extradesc = do