FortyTwo.Prompts.Select
select :: MonadIO m => String -> [String] -> m String Source #
Select prompt from a list of options select "What's your favourite color?" [Red, Yellow, Blue]
selectWithDefault :: MonadIO m => String -> [String] -> String -> m 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