marvin-0.0.6: A modular chat bot

Copyright(c) Justus Adam 2016
LicenseBSD3
Maintainerdev@justus.science
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Marvin.Types

Description

 

Synopsis

Documentation

data Message a Source #

contents and meta information of a recieved message

Constructors

Message 

Instances

HasResponds (Handlers a0) (Vector (Regex, Match -> Message a0 -> RunnerM ())) Source # 

Methods

responds :: Lens' (Handlers a0) (Vector (Regex, Match -> Message a0 -> RunnerM ())) Source #

HasHears (Handlers a0) (Vector (Regex, Match -> Message a0 -> RunnerM ())) Source # 

Methods

hears :: Lens' (Handlers a0) (Vector (Regex, Match -> Message a0 -> RunnerM ())) Source #

Get (b, Message a) (User' a) Source # 

Methods

getLens :: Lens' (b, Message a) (User' a) Source #

Get (b, Message a) (Channel' a) Source # 

Methods

getLens :: Lens' (b, Message a) (Channel' a) Source #

Get (b, Message a) (Message a) Source # 

Methods

getLens :: Lens' (b, Message a) (Message a) Source #

newtype ScriptId Source #

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

Constructors

ScriptId 

Fields

class (IsScript m, MonadIO m) => HasConfigAccess m 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