httpExceptionHandler :: HttpException -> IO L.ByteString
httpExceptionHandler e = (putStrLn "Error: simpleHttp returned exception ") >> (return L.empty)
getStocks :: String -> IO L.ByteString
getStocks url = (simpleHttp url) `X.catch` httpExceptionHandler
updateStocks :: IO String
updateStocks = do
yqlResult <- getStocks testQuery
case yqlResult of x | x == L.empty -> return "return exception"
| otherwise -> return "here I will call another function"