Open ibotty opened 9 years ago
Ignore the comments that belong to the cryptonite port.
I like the API with MonadRandom
, having ported a client using oauthenticated to use MonadRandom
.
If you are ok with it (and kindly looked over the changes in crypto), I'd prefer to go ahead with this approach.
I think most likely that the policy of tracking Vincent's design is best. I will take a closer look at the MonadRandom module though, first.
I also like the elimination of oauthSimple
, that's a nice consequence!
Ok! I'm a big fan of this design. Lets go this way!
I also really like your style naming the monad variable io
as it'll be a nice hint to new users.
Are you fine with merging that pull request and releasing it on hackage. I am using that pull request in production for a few month now.
Yeah, go ahead and merge it!
See commit b39e1e0 for the meat. It makes a few things way easier. The user will need to supply the
MonadRandom
instance to use though (or stay withinIO
to useurandom
as before the cryptonite port).