diff options
author | Teddy Wing | 2017-09-19 04:52:46 +0200 |
---|---|---|
committer | Teddy Wing | 2017-09-19 04:58:26 +0200 |
commit | affb573718b28e2df9f5c5f10fb7a1fff434495e (patch) | |
tree | 6c00eb5a343896e4eda1ff5f10d93bccc9221564 /src/IRC.hs | |
parent | e689b4b8cbf1c73f04b1b348fd0d598d401085b1 (diff) | |
download | sorbot-affb573718b28e2df9f5c5f10fb7a1fff434495e.tar.bz2 |
Plugin(matchPlugin): Get our functions to actually work with `Bot`
Previously we added the `Bot` monad to our signature, but we didn't have
a way to filter and match plugins wrapped in the `Bot` monad. This is
what we're doing here. It's the same work as before, but we need to
account for a wrapped `Plugin` type.
There's a lot of extra cruft code here from when I was trying things out
to get it working. The short story is that I do some binding and
sequencing dances to extract `Plugin`s so that we can actually match
against them.
I've seen recommendations against `fail`, which is why I tried to use
`mzero`, but it just seemed to be too complicated so went with `fail`,
which seems to make sense in context.
Diffstat (limited to 'src/IRC.hs')
0 files changed, 0 insertions, 0 deletions