fortytwo-1.0.2: Interactive terminal prompt
FortyTwo.Prompts.Select
Synopsis
select :: String -> [String] -> IO String Source #
Select prompt from a list of options select "What's your favourite color?" [Red, Yellow, Blue]
selectWithDefault :: String -> [String] -> String -> IO String Source #
Select prompt from a list of options falling back to a default value if no answer will be provided selectWithDefault "What's your favourite color?" [Red, Yellow, Blue] Red