aboutsummaryrefslogtreecommitdiffstats
path: root/src/Bot.hs
diff options
context:
space:
mode:
authorTeddy Wing2017-09-14 22:45:35 +0200
committerTeddy Wing2017-09-14 22:45:35 +0200
commit1f9c9d43ef475167ac6e886a71a782cf41bd549e (patch)
tree14b52a97984536edc8ea5ce20f2ebb9ec131e810 /src/Bot.hs
parentea190de02cea99347ae125d86cc22bf8cd926c88 (diff)
downloadsorbot-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/Bot.hs')
0 files changed, 0 insertions, 0 deletions