ermine-0.6: Ermine

Copyright(c) Edward Kmett and Dan Doel 2012-2013
LicenseBSD3
MaintainerEdward Kmett <ekmett@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Ermine.Console.Command

Description

 

Documentation

data Command Source

Constructors

Command 

Fields

_cmdName :: String
 
_alts :: [String]
 
_arg :: Maybe String
 
_tabbed :: Maybe (CompletionFunc Console)
 
_desc :: String
 
_body :: [String] -> String -> Console ()
 

Instances

class HasCommand t where Source

Minimal complete definition

command

Methods

command :: Lens' t Command Source

alts :: Lens' t [String] Source

arg :: Lens' t (Maybe String) Source

body :: Lens' t ([String] -> String -> Console ()) Source

cmdName :: Lens' t String Source

desc :: Lens' t String Source

tabbed :: Lens' t (Maybe (CompletionFunc Console)) Source

Instances