Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- theAnswerToEverything :: Int
- input :: String -> IO String
- inputWithDefault :: String -> String -> IO String
- confirm :: String -> IO Bool
- confirmWithDefault :: String -> Bool -> IO Bool
- password :: String -> IO String
- select :: String -> [String] -> IO String
- selectWithDefault :: String -> [String] -> String -> IO String
- multiselect :: String -> [String] -> IO [String]
- multiselectWithDefault :: String -> [String] -> [String] -> IO [String]
Documentation
theAnswerToEverything :: Int Source #
The answer to everything in the universe
inputWithDefault :: String -> String -> IO 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"
confirm :: String -> IO Bool Source #
Ask a confirm question by default it will be true confirm "Do you like music?"
confirmWithDefault :: String -> Bool -> IO Bool Source #
Ask a confirm falling back to a default value if no answer will be provided confirmWithDefault "Do you like music?" True