summoner-1.0.6: Tool for creating completely configured production Haskell projects.
Summoner.Question
Description
This module contains function to proper questioning in terminal.
printQuestion :: Text -> [Text] -> IO () Source #
choose :: Text -> [Text] -> IO Text Source #
chooseYesNo Source #
Arguments
target
action for Y answer
Y
action for N answer
N
chooseYesNoBool :: Text -> IO Bool Source #
query :: Text -> IO Text Source #
queryDef :: Text -> Text -> IO Text Source #
queryManyRepeatOnFail :: forall a. (Text -> Maybe a) -> IO [a] Source #
checkUniqueName :: Text -> IO Text Source #
targetMessageWithText :: Bool -> Text -> Text -> IO Bool Source #
trueMessage :: Text -> IO Bool Source #
falseMessage :: Text -> IO Bool Source #