fortytwo-1.0.4: Interactive terminal prompt

Safe HaskellSafe
LanguageHaskell2010

FortyTwo.Prompts.Multiselect

Synopsis

Documentation

multiselect :: String -> [String] -> IO [String] Source #

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

multiselectWithDefault :: String -> [String] -> [String] -> IO [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]