Discord.hs
Discord.hs copied to clipboard
Examples not using fetch'
The documentation of Network.Discord.Rest makes it seem like there is a much better way to make requests than just using fetch and fetch'. However, all examples currently use fetch'.
Could you make at least one example showing how to use Network.Discord.Rest.Channel and similar?
The documentation is also outdated by a couple versions.
Actually, I have no clue how to use the newest version at all. It seems to be completely different from the examples...
I was working on a rework that I (somewhat) accidentally pushed to hackage, but I just started a new job and my life will be a bit busy for at least the next month. I will likely revert my changes to what you see in the documentation and add a patch to the Fetchable class to allow you to unwrap returned values (currently not possible). I apologize for the way this library has progressed recently, and provide my reasons to give context, not make excuses. I wanted to take another crack at constructing a better abstraction but ran out of time.
I see. Well, I can understand that.
If you do decide to work on it again (even if just to revert your changes) - it would be very nice if you could make it work with a more current resolver. I had a lot of trouble getting it to work because many older packages seem to refuse to compile with newer cabal. (Most notably pandoc, which is one of your dependencies. Lens has a whole 3 dependencies I had to update manually and it has this problem itself)