Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- theAnswerToEverything :: Int
- input :: MonadIO m => String -> m String
- inputWithDefault :: MonadIO m => String -> String -> m String
- confirm :: MonadIO m => String -> m Bool
- confirmWithDefault :: MonadIO m => String -> Bool -> m Bool
- password :: MonadIO m => String -> m String
- select :: MonadIO m => String -> [String] -> m String
- selectWithDefault :: MonadIO m => String -> [String] -> String -> m String
- multiselect :: MonadIO m => String -> [String] -> m [String]
- multiselectWithDefault :: MonadIO m => String -> [String] -> [String] -> m [String]
Documentation
theAnswerToEverything :: Int Source #
The answer to everything in the universe
inputWithDefault :: MonadIO m => String -> String -> m String Source #
Ask a simple input question falling back to a default value if no answer will be provided inputWithDefault "What is your name?" "The Dude"
confirmWithDefault :: MonadIO m => String -> Bool -> m Bool Source #
Ask a confirm falling back to a default value if no answer will be provided
password :: MonadIO m => String -> m String Source #
Ask a user password password "What your secret password?"