Skip to content

Commit 7d22554

Browse files
committed
(#598) Fix hlint remarks
1 parent 414de95 commit 7d22554

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/Bot/CustomCommand.hs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{-# LANGUAGE OverloadedStrings #-}
22
{-# LANGUAGE QuasiQuotes #-}
3-
{-# LANGUAGE TupleSections #-}
43

54
module Bot.CustomCommand
65
( addCustomCommand
@@ -203,9 +202,9 @@ expandCustomCommandVars Message { messageSender = sender
203202
]
204203
case code of
205204
Left msg -> return $ Left (show msg)
206-
Right (_, code') -> do
205+
Right (_, code') ->
207206
return $
208-
Right customCommand {customCommandMessage = expandVars vars code'}
207+
Right customCommand {customCommandMessage = expandVars vars code'}
209208

210209
bumpCustomCommandTimes :: CustomCommand -> CustomCommand
211210
bumpCustomCommandTimes customCommand =
@@ -225,7 +224,7 @@ dispatchCustomCommand =
225224
ignoreNothing $
226225
transR getCompose $
227226
dupLiftR expandCustomCommandVars $
228-
replyLeft $ cmapR customCommandMessage $ sayMessage
227+
replyLeft $ cmapR customCommandMessage sayMessage
229228
where
230229
f :: Functor m => (a, m b) -> m (a, b)
231230
f = uncurry $ fmap . (,)

src/Bot/Periodic.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ startPeriodicTimer dispatchCommand channel eid =
107107
pt'
108108

109109
startPeriodicCommands ::
110-
Channel -> (Reaction Message (Command T.Text)) -> Effect ()
110+
Channel -> Reaction Message (Command T.Text) -> Effect ()
111111
startPeriodicCommands channel dispatchCommand = do
112112
eids <- (entityId <$>) <$> selectEntities (Proxy :: Proxy PeriodicTimer) All
113113
for_ eids (startPeriodicTimer dispatchCommand channel)

0 commit comments

Comments
 (0)