marvin-0.0.5: A modular chat bot

Safe HaskellNone
LanguageHaskell2010

Marvin.Internal.Types

Contents

Synopsis

Documentation

newtype User Source #

Identifier for a user (internal and not necessarily equal to the username)

Constructors

User Text 

newtype Channel Source #

Identifier for a channel (internal and not necessarily equal to the channel name)

Constructors

Channel Text 

data Message Source #

contents and meta information of a recieved message

Constructors

Message 

newtype ScriptId Source #

A type, basically a String, which identifies a script to the config and the logging facilities.

Constructors

ScriptId 

Fields

newtype AdapterId a Source #

A type, basically a String, which identifies an adapter to the config and the logging facilities.

Constructors

AdapterId 

Instances

verifyIdString :: String -> (String -> a) -> String -> a Source #

class HasScriptId s a | s -> a where Source #

Minimal complete definition

scriptId

Methods

scriptId :: Lens' s a Source #

class (IsScript m, MonadIO m) => HasConfigAccess m where Source #

Denotes a place from which we may access the configuration.

During script definition or when handling a request we can obtain the config with getConfigVal or requireConfigVal.

Minimal complete definition

getConfigInternal

Orphan instances