Skip to content

Commit

Permalink
Remove unused argument in lookup' function
Browse files Browse the repository at this point in the history
  • Loading branch information
lemol committed Jan 7, 2015
1 parent a6f70e0 commit 2c5c37d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -13,8 +13,8 @@ your mail server settings and then loading the file in ghci and type

ghci -hide-package monads-fd example/smtpMimeMail.hs
main
If you encounter problems and want to debug the ghci

If you encounter problems and want to debug the ghci
debugger works well:

:set -fbreak-on-exception
Expand Down
2 changes: 1 addition & 1 deletion src/Network/HaskellNet/IMAP.hs
Expand Up @@ -452,7 +452,7 @@ bsPutCrLf :: BSStream -> ByteString -> IO ()
bsPutCrLf h s = bsPut h s >> bsPut h crlf >> bsFlush h

lookup' :: String -> [(String, b)] -> Maybe b
lookup' q [] = Nothing
lookup' _ [] = Nothing
lookup' q ((k,v):xs) | q == lastWord k = return v
| otherwise = lookup' q xs
where
Expand Down

0 comments on commit 2c5c37d

Please sign in to comment.