Created
December 23, 2014 11:53
-
-
Save jdiez17/f52d2ab6be2bd5fbae2d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| queryRedis :: forall a. R.Connection -> R.Redis a -> Bot (Maybe a) | |
| queryRedis db r = do | |
| eitherComp <- redisComp | |
| return $ either (const Nothing) Just eitherComp | |
| where | |
| redisComp :: Bot (Either SomeException a) | |
| redisComp = io $ try $ runRedis db r |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment