Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
liamoc committed Jun 16, 2012
1 parent bfa0859 commit 5d67de0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Examples.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ passwordW realPassword =
let
w = do validator (== realPassword) $ password "Enter password: " (Just '*')
outputLn "The secret is 42"
in w <|> w <|> w <|> (outputLn "Password rejected. Goodbye!" >> mzero)
in w <|> w <|> w <|> (outputLn "Password rejected. Goodbye!")

passwordW2 :: String -> Wizard b ()
passwordW2 realPassword = (retryMsg "Incorrect password."
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ passwordW realPassword =
let
w = do validator (== realPassword) $ password "Enter password: " (Just '*')
outputLn "The secret is 42"
in w <|> w <|> w <|> (outputLn "Password rejected. Goodbye!" >> mzero)
in w <|> w <|> w <|> (outputLn "Password rejected. Goodbye!")

main = runInputT defaultSettings $ runHaskeline $ passwordW "rosebud"

Expand Down

0 comments on commit 5d67de0

Please sign in to comment.