byline-1.1.1: Library for creating command-line interfaces (colors, menus, etc.)
CopyrightThis file is part of the package byline. It is subject to the
license terms in the LICENSE file found in the top-level
directory of this distribution and at:

https://github.com/pjones/byline

No part of this package including this file may be copied
modified propagated or distributed except according to the
terms contained in the LICENSE file.
LicenseBSD-2-Clause
Safe HaskellNone
LanguageHaskell2010

Byline.Shell

Description

Interactive shells.

Synopsis

Shell-like Interfaces

data Shell a Source #

A type that describes how to process user-entered shells.

Since: 1.1.0.0

Constructors

Shell 

Fields

runShell :: MonadByline m => (a -> m ()) -> Shell a -> m () Source #

Run a single iteration of the shell.

Since: 1.1.0.0

shellHelp :: MonadByline m => Shell a -> m () Source #

Print a list of shell commands.

Since: 1.1.0.0

shellCompletion :: Applicative m => Shell a -> CompletionFunc m Source #

A completion function for shell commands.

Adds completion for subcommand names and their flags.

Since: 1.1.0.0

Re-exports