diff options
author | Teddy Wing | 2017-09-14 03:44:38 +0200 |
---|---|---|
committer | Teddy Wing | 2017-09-14 03:44:38 +0200 |
commit | ea190de02cea99347ae125d86cc22bf8cd926c88 (patch) | |
tree | 2c5756af9a7fe86128f12117f5948282d0be4103 /src/PluginList.hs | |
parent | cd366dc004b82f0ea937da231cbc1c9abfdca934 (diff) | |
download | sorbot-ea190de02cea99347ae125d86cc22bf8cd926c88.tar.bz2 |
Add `Bot` to rest of plugins
Add our `Bot` monad to the rest of the plugins:
* Factorial
* GitRemoteSetOrigin
* Help
The only problem is with the Help plugin. Still trying to figure out how
to set up my list comprehension so that it works with the `Bot`-wrapped
`Plugin` list.
Diffstat (limited to 'src/PluginList.hs')
-rw-r--r-- | src/PluginList.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/PluginList.hs b/src/PluginList.hs index bd2af35..070033a 100644 --- a/src/PluginList.hs +++ b/src/PluginList.hs @@ -2,6 +2,7 @@ module PluginList ( plugins ) where +import Bot (Bot) import Plugin.Base (Plugin) import Plugin.Factorial (factorial) import Plugin.GitHubCommit (gitHubCommit) @@ -9,7 +10,7 @@ import Plugin.GitRemoteSetOrigin (gitRemoteSetOrigin) -- | The list of plugins to load, minus the Help plugin, which would otherwise -- cause a circular import. -plugins :: [Plugin] +plugins :: [Bot Plugin] plugins = [ factorial , gitHubCommit |