Create a prompt with optional default value that returns a value of some Text instance.
Modulecabal-install-3.12.1.0Haskell2010
Distribution.Client.Init.Prompt
User prompt utility functions for use by the 'cabal init' command.
- 4 values
- Packagecabal-install-3.12.1.0
- Exports4
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourcePrompt.hs
value
promptYesNo :: Interactive m=> Stringprompt message
-> DefaultPrompt Booloptional default value
-> m Bool
Create a yes/no prompt with optional default value.
Create a prompt with optional default value that returns a String.
value
promptList :: Interactive m=> Stringprompt
-> [String]choices
-> DefaultPrompt Stringoptional default value
-> Maybe (String -> String)modify the default value to present in-prompt e.g. empty string maps to "(none)", but only in the prompt.
-> Boolwhether to allow an
otheroption-> m String
Create a prompt from a list of strings