glirc-2.33.1: Console IRC client

Copyright(c) Eric Mertens 2017
LicenseISC
Maintaineremertens@gmail.com
Safe HaskellSafe
LanguageHaskell2010

Client.Commands.Arguments.Spec

Description

 

Documentation

type Args r = Ap (Arg r) Source #

optionalArg :: Args r a -> Args r (Maybe a) Source #

tokenList Source #

Arguments

:: [String]

required names

-> [String]

optional names

-> Args r [String] 

extensionArg :: String -> (r -> String -> Maybe (Args r a)) -> Args r a Source #

data Arg :: * -> * -> * where Source #

Constructors

Argument :: ArgumentShape -> String -> (r -> String -> Maybe a) -> Arg r a 
Optional :: Args r a -> Arg r (Maybe a) 
Extension :: String -> (r -> String -> Maybe (Args r a)) -> Arg r a