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

Deprecated inReplyToStatusId #52

Closed Ulrar closed 7 years ago

Ulrar commented 7 years ago

Hi,

I'm adding twitter support to my mastodon IRC bot, and after struggling a bit to install the lib (apparently debian's version of cabal can't install some of twitter-conduit's dependencies) I got all of that to work. Now trying to follow the doc (http://hackage.haskell.org/package/twitter-conduit-0.2.2/docs/Web-Twitter-Conduit.html) to implement a reply function :

st <- Twitter.call twinfo mgr $ Twitter.update (T.pack repl) & Twitter.inReplyToStatusId ?~ id'

I get "Deprecated: "Please use Web.Twitter.Conduit.Parameters.inReplyToStatusId"". Would be nice to update the doc if possible, 'cause I have absolutely no idea how to do that :)

Ulrar commented 7 years ago

Oh, never updated this. Turns out you just need to import Web.Twitter.Conduit.Parameters instead, and it'll just work. Would be nice to update the docs though