@hackage / readline-statevar

Readline with variables (setX/getY) wrapped in state vars

Latest1.0.1.0

About

Metadata

  • Last updated , by KrzysztofSkrzetnicki
  • License BSD-3-Clause
  • Maintained by: Krzysztof Skrzetnicki <krzysztof.skrzetnicki+hackage@gmail.com>

  • Lottery factor: 0

Links

Installation

Package Flags

Use the -f option with cabal commands to enable flags

    debug (off by default)

Readme

readline package is a good wrapping library around libreadline.

Unfortunately, there is a lot of set/get pairs of functions, which clutter namespace. This kind of API can be nicely expressed as StateVars, as in HOpenGL.

readline-statevar seeks to fill this gap and provide nicer API based on StateVars.

For clarity: this module wraps only System.Console.Readline module. System.Console.SimpleLineEditor is left untouched.