diff options
| author | Teddy Wing | 2017-08-12 22:25:00 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2017-08-12 22:25:00 +0200 | 
| commit | c32e5e1b8384c843ad750acff81f671d2b98777a (patch) | |
| tree | 49257bb92d1986d0d0191ac9aeccbb1c9dfad28d /src | |
| parent | 5c8cdafb1ccfe2355f068a2620cd5c9b250fdb88 (diff) | |
| download | sorbot-c32e5e1b8384c843ad750acff81f671d2b98777a.tar.bz2 | |
Lib.hs: Make `Network.IRC.Client` a qualified import
Make it a bit more obvious where these functions are coming from by
prefixing them with `IRC.`.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Lib.hs | 10 | 
1 files changed, 5 insertions, 5 deletions
| @@ -8,7 +8,7 @@ import qualified Data.ByteString as B  import qualified Data.Text as T  import Database.SQLite.Simple -import Network.IRC.Client +import qualified Network.IRC.Client as IRC  import Message  import Plugin @@ -31,10 +31,10 @@ someFunc = do  connectIRC :: B.ByteString -> Int -> T.Text -> IO ()  connectIRC host port nick = do -    conn <- connectWithTLS host port 1 -    let cfg = defaultIRCConf nick +    conn <- IRC.connectWithTLS host port 1 +    let cfg = IRC.defaultIRCConf nick      -- let cfg' = cfg { _eventHandlers = yourCustomEventHandlers : _eventHandlers cfg }      let cfg' = cfg { -          _channels = ["#test-chan-13513"] +          IRC._channels = ["#test-chan-13513"]          } -    start conn cfg' +    IRC.start conn cfg' | 
