AAI-0.2.0.1: Abstract Application Interface.

Safe HaskellSafe
LanguageHaskell2010

Control.Command

Description

Author : Nils bash0r Jonsson Copyright : (c) 2015 Nils bash0r Jonsson License : MIT

Maintainer : aka.bash0r@gmail.com Stability : unstable Portability : non-portable (Portability is untested.)

A command interface.

Synopsis

Documentation

class Command a where Source

A type class describing a basic command.

Methods

execute :: a -> [String] -> IO () Source

Execute a command.

help :: a -> String Source

Execute the help of a command.