Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data QueryBody
- data KeywordOptions = KeywordOptions {
- ko_emotion :: !Bool
- ko_sentiment :: !Bool
- ko_limit :: !Int
- data ConceptOptions = ConceptOptions {}
- data Query = Query {
- q_body :: !QueryBody
- q_keywords :: !(Maybe KeywordOptions)
- q_categories :: !Bool
- q_concepts :: !(Maybe ConceptOptions)
- data Emotion = Emotion {}
- newtype Sentiment = Sentiment {}
- data Keyword = Keyword {
- k_keyword :: !Text
- k_relevance :: !Double
- k_sentiment :: !(Maybe Sentiment)
- k_emotion :: !(Maybe Emotion)
- data Concept = Concept {}
- data Category = Category {}
- data Response = Response {
- r_language :: !Language
- r_keywords :: !(Vector Keyword)
- r_concepts :: !(Vector Concept)
- r_categories :: !(Vector Category)
- data Language
- data NaturalLanguage
- makeAuth :: Manager -> Text -> Text -> Auth NaturalLanguage
- data Auth service = Auth {
- a_username :: !Text
- a_password :: !Text
- a_url :: !Text
- a_manager :: !Manager
- naturalLanguage :: Auth NaturalLanguage -> Query -> IO (Result Response)
- data Result r
- = ROkay r
- | RBadResponse !Text
- | RBadStatus !Status
Request
data KeywordOptions Source #
KeywordOptions | |
|
data ConceptOptions Source #
Query | |
|
Response
Response | |
|
API Call
data NaturalLanguage Source #
Auth | |
|
naturalLanguage :: Auth NaturalLanguage -> Query -> IO (Result Response) Source #