fortytwo-2.0.0: Interactive terminal prompt
Safe HaskellSafe-Inferred
LanguageHaskell2010

FortyTwo.Prompts.Multiselect

Synopsis

Documentation

multiselect :: MonadIO m => String -> [String] -> m [String] Source #

Multi Select prompt multiselect "What's your favourite color?" [Red, Yellow, Blue]

multiselectWithDefault :: MonadIO m => String -> [String] -> [String] -> m [String] Source #

Multi Select prompt, falling back to a default list of values if no answer will be provided multiselectWithDefault "What's your favourite color?" [Red, Yellow, Blue] [Red, Blue]