diff options
author | Teddy Wing | 2017-09-14 22:45:35 +0200 |
---|---|---|
committer | Teddy Wing | 2017-09-14 22:45:35 +0200 |
commit | 1f9c9d43ef475167ac6e886a71a782cf41bd549e (patch) | |
tree | 14b52a97984536edc8ea5ce20f2ebb9ec131e810 /src/Plugin.hs | |
parent | ea190de02cea99347ae125d86cc22bf8cd926c88 (diff) | |
download | sorbot-1f9c9d43ef475167ac6e886a71a782cf41bd549e.tar.bz2 |
Help: Fix type error resulting from new plugin list type with `Bot`
The plugin list's type has changed from `[Plugin]` to `[Bot Plugin]`. In
order for our code here to work, we need to unwrap the `Bot` part so we
can get access to the `Plugin` again and do the same work.
Fortunately, using `sequence`, we can turn our `[Bot Plugin]` into a
`Bot [Plugin]`, which is then easily bound with `<-` and passed to our
old code to be handled like before. Yay!
Diffstat (limited to 'src/Plugin.hs')
0 files changed, 0 insertions, 0 deletions