minor refactor of readURL

This commit is contained in:
Jonathan Lamothe 2021-11-19 11:03:51 -05:00
parent 5c83bf3123
commit dfad007b60

View File

@ -54,9 +54,9 @@ readURL
-- ^ the connection -- ^ the connection
-> IO (Maybe GemURL) -> IO (Maybe GemURL)
readURL conn = readURL conn =
strFromConn inBufSize conn >>= \case strFromConn inBufSize conn >>= return . \case
Nothing -> return Nothing Nothing -> Nothing
Just str -> return $ decodeGemURL str Just str -> decodeGemURL str
-- | Sends a 'GemResponse' to a 'Connection' -- | Sends a 'GemResponse' to a 'Connection'
sendResponse sendResponse