From 59d7bdb0d4252288c600a0e97ed15a3494a9d1ee Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 12 Aug 2017 20:04:14 +0200 Subject: Set up basic IRC support Add the 'irc-client' package to facilitate communication over IRC. Copy the example from: http://hackage.haskell.org/package/irc-client-0.4.4.4/docs/Network-IRC-Client.html which connects to a network. We specify a channel to join, and what do you know, it works! Pretty cool. Commented out the code that runs the GitHub Commit plugin for now while testing this. Add the `OverloadedStrings` extension so we can write string literals but have them converted into the appropriate `Data.Text` and `Data.ByteString` types required by the IRC library. --- sorbot.cabal | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sorbot.cabal') diff --git a/sorbot.cabal b/sorbot.cabal index ba34ed4..8b29113 100644 --- a/sorbot.cabal +++ b/sorbot.cabal @@ -21,8 +21,11 @@ library , Plugin.Base , Plugin.GitHubCommit build-depends: base >= 4.7 && < 5 + , bytestring + , irc-client , regex-tdfa , sqlite-simple + , text default-language: Haskell2010 executable sorbot-exe -- cgit v1.2.3