simple-prompt: Simple commandline text prompt functions

[ bsd3, library, system ] [ Propose Tags ]
This version is deprecated.

The library provides prompt functions for reading user input: for example prompt returns the input given, promptEnter expects only Enter, and yesNo asks for confirmation.


[Skip to Readme]

Modules

[Last Documentation]

  • SimplePrompt
    • SimplePrompt.Internal

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0, 0.2.0, 0.2.0.1, 0.2.1, 0.2.2 (info)
Change log ChangeLog.md
Dependencies base (<5), exceptions, extra, haskeline, time [details]
License BSD-3-Clause
Copyright 2023 Jens Petersen <juhpetersen@gmail.com>
Author Jens Petersen <juhpetersen@gmail.com>
Maintainer Jens Petersen <juhpetersen@gmail.com>
Revised Revision 1 made by JensPetersen at 2023-05-29T15:52:50Z
Category System
Home page https://github.com/juhp/simple-prompt
Bug tracker https://github.com/juhp/simple-prompt/issues
Source repo head: git clone https://github.com/juhp/simple-prompt.git
Uploaded by JensPetersen at 2023-05-29T15:45:09Z
Distributions Fedora:0.2.0.1, LTSHaskell:0.2.2, NixOS:0.2.2, Stackage:0.2.2
Downloads 278 total (22 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2023-05-29 [all 2 reports]

Readme for simple-prompt-0.2.0

[back to package description]

simple-prompt

A simple commandline text prompt library for user input.

  • prompt: returns a string
  • promptNonEmpty prompts for non-empty string
  • promptInitial with pre-filled initial input
  • promptPassword prompts for password
  • promptChar prompt for a character
  • promptEnter waits for Enter key
  • yesNo expects y/n answer
  • yesNoDefault [y/N] or [Y/n]

It uses haskeline to read the input.