diff options
author | Teddy Wing | 2017-08-19 13:27:09 +0200 |
---|---|---|
committer | Teddy Wing | 2017-08-19 13:27:09 +0200 |
commit | 54f23f1d77a3623d6e18c0a55b622d4cfab60406 (patch) | |
tree | 2ed9cbf28854caadd22bd05ea708f84aa7bcb859 /src | |
parent | 6c383a66d7cdbf89a983451c75f739b68fa88330 (diff) | |
download | sorbot-54f23f1d77a3623d6e18c0a55b622d4cfab60406.tar.bz2 |
IRC.hs: Reformat record update syntax
Previously I had moved the `{` to the previous line because I was
getting compilation errors with it on a new line. Turns out whitespace
is important here. We just need to indent it an extra time and the
compiler understands us. Now this section matches the style of the rest
of the project.
Diffstat (limited to 'src')
-rw-r--r-- | src/IRC.hs | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -17,10 +17,11 @@ connectIRC :: B.ByteString -> Int -> T.Text -> IO () connectIRC host port nick = do conn <- IRC.connectWithTLS host port 1 let cfg = IRC.defaultIRCConf nick - let cfg' = cfg { - IRC._eventHandlers = handlePrivmsg : IRC._eventHandlers cfg - , IRC._channels = ["#test-chan-13513"] - } + let cfg' = cfg + { + IRC._eventHandlers = handlePrivmsg : IRC._eventHandlers cfg + , IRC._channels = ["#test-chan-13513"] + } IRC.start conn cfg' handlePrivmsg :: IRC.EventHandler s |