simple-prompt

Simple commandline text prompt functions

https://github.com/juhp/simple-prompt

Version on this page:0.1.0
LTS Haskell 22.21:0.2.2
Stackage Nightly 2024-05-06:0.2.2
Latest on Hackage:0.2.2

See all snapshots simple-prompt appears in

BSD-3-Clause licensed and maintained by Jens Petersen
This version can be pinned in stack with:simple-prompt-0.1.0@sha256:57e7bb19da24bdccc85b3c744f07365d1c68d8e716aebaa5d3be3d5242bd9dd9,1814

Module documentation for 0.1.0

Depends on 2 packages(full list with versions):

simple-prompt

A little library for commandline text prompts for user input.

  • prompt: return a String
  • prompt_ ignore input
  • yesno expects y/n answer

Currently assumes unix since it reads from /dev/tty for fresh stdin, but it could probably easily be extended to work on Windows.

Changes

Revision history for simple-prompt

0.1.0 (2023-04-02)

  • initial release with prompt, prompt_, yesno functions