linting of readURL function

I disagree with the use of `<$>` in place of `.`, but not enough to fight hlint on it.
This commit is contained in:
Jonathan Lamothe 2021-11-19 19:28:46 -05:00
parent dfad007b60
commit 489d0fdb78

View File

@ -54,7 +54,7 @@ readURL
-- ^ the connection -- ^ the connection
-> IO (Maybe GemURL) -> IO (Maybe GemURL)
readURL conn = readURL conn =
strFromConn inBufSize conn >>= return . \case strFromConn inBufSize conn >>= return <$> \case
Nothing -> Nothing Nothing -> Nothing
Just str -> decodeGemURL str Just str -> decodeGemURL str