Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
type YandexApiT m a = ReaderT ApiInfo m a Source #
type ApiInfo = (YandexApiConfig, Session) Source #
data YandexApiConfig Source #
format :: Lens' TranslateParams Format Source #
options :: Lens' TranslateParams [TranslateOptions] Source #
directionAsText :: Direction -> Text Source #
configureApi :: APIKey -> YandexApiConfig Source #
runYandexApiT :: MonadIO m => Session -> YandexApiConfig -> YandexApiT m a -> m a Source #
runYandexApi :: MonadIO m => Session -> YandexApiConfig -> YandexApiT IO a -> m a Source #
runYandexApiSession :: YandexApiConfig -> YandexApiT IO a -> IO a Source #