Copyright | This 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. |
---|---|
License | BSD-2-Clause |
Safe Haskell | None |
Language | Haskell2010 |
Interactive shells.
Synopsis
- data Shell a = Shell {}
- runShell :: MonadByline m => (a -> m ()) -> Shell a -> m ()
- shellHelp :: MonadByline m => Shell a -> m ()
- shellCompletion :: Applicative m => Shell a -> CompletionFunc m
- module Byline.Completion
Shell-like Interfaces
A type that describes how to process user-entered shells.
Since: 1.1.0.0
Shell | |
|
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
module Byline.Completion