interact: instantly create REPL from any function

[ library, mit, repl, system ] [ Propose Tags ] [ Report a vulnerability ]

This module provides functions to create interactive REPLs:

  • stateless REPL from a single argument functions

  • REPL with state from plain state function or with State monad

  • REPL-fold from two-arguments functions, with the accumulator in the first argument

Each line you enter is read into the argument type and sent to the function, with the result printed


[Skip to Readme]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.0, 0.2.0.0
Change log CHANGELOG.md
Dependencies base (>=4.7 && <5), mtl (>=2.2 && <2.3) [details]
License MIT
Copyright 2020 Evgeny Poberezkin
Author Evgeny Poberezkin
Maintainer evgeny@poberezkin.com
Category System, REPL
Home page https://github.com/epoberezkin/interact#readme
Uploaded by epoberezkin at 2020-06-21T18:29:42Z
Distributions
Downloads 478 total (16 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2020-06-21 [all 1 reports]

Readme for interact-0.2.0.0

[back to package description]

interact

Functions to create interactive REPLs:

  • stateless REPL from a single argument functions
  • REPL with state from plain state function or with State monad
  • REPL-fold from two-arguments functions, with the accumulator in the first argument

See docs and usage examples on hackage.