himura / twitter-conduit

Twitter API package for Haskell, including enumerator interfaces and Streaming API supports.
BSD 2-Clause "Simplified" License
158 stars 48 forks source link

Adds support for extended tweets #83

Closed elldritch closed 2 years ago

elldritch commented 3 years ago

This PR adds a new type TweetMode inside Web.Twitter.Conduit.Parameters that can be used as a ParameterValue for a Param with symbol "tweet_mode". Resolves #60.

I added the tweet_mode parameter symbol to the supports of every APIRequest that returned a Status or something containing a Status (e.g. a RetweetedStatus). I checked for exhaustiveness using the regex APIRequest .*? \[?.*?Status\]?.

I also added an integration test and ran it locally to check that extended mode works as expected.

I also fixed some typos I found.