Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
type YandexApiT m a = ReaderT ApiInfo m a Source #
data YandexApiConfig Source #
directions :: (MonadIO m, MonadThrow m) => Maybe Language -> YandexApiT m ([Direction], Maybe LanguagesDescr) Source #
detect :: (MonadIO m, MonadThrow m) => Text -> YandexApiT m Language Source #
translate :: (MonadIO m, MonadThrow m) => Maybe Language -> Language -> TranslateParams -> [Text] -> YandexApiT m ([Text], Direction, Maybe Text) Source #
format :: Lens' TranslateParams Format Source #
options :: Lens' TranslateParams [TranslateOptions] 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 #