glirc-2.40.1: Console IRC client
Copyright(c) Eric Mertens 2017
LicenseISC
Maintaineremertens@gmail.com
Safe HaskellSafe-Inferred
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 #

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

data Arg :: Type -> Type -> Type 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