Re: [Haskell-cafe] How to use http-enumerator with hoauth?

2011-02-16 Thread Jeremy Fitzhardinge
On 02/16/2011 02:57 AM, Michael Snoyman wrote: I have yet to write to the mailing lists about it, but likely there will be a rename/expansion based on a recommendation by Johan. Basically, we need two datatypes: Ascii and CIAscii. I'm not sure if that addresses your questions though. Mostly

Re: [Haskell-cafe] How to use http-enumerator with hoauth?

2011-02-16 Thread Jeremy Fitzhardinge
On 02/16/2011 06:00 AM, Diego Souza wrote: I was thinking in separating the core and http functions in order to be able to provide implementation for http-enumerator without breaking existing clients. Also the ones who don't need http interface don't need to use the full stack. I was not

[Haskell-cafe] How to use http-enumerator with hoauth?

2011-02-15 Thread Jeremy Fitzhardinge
Hi, I'm trying to use http-enumerator with Twitter's streaming API, which requires OAuth authentication. I was hoping to use the hoauth package for this, but it seems that combining with with http-enumerator is pretty awkward. In principle, it should be straightforward since hoauth defines a

Re: [Haskell-cafe] How to use http-enumerator with hoauth?

2011-02-15 Thread Jeremy Fitzhardinge
On 02/15/2011 02:14 PM, Vincent Hanquez wrote: Clearly, http-enumerator is the best package for doing http/https. however since it's pretty new, lots of package still uses their own abstraction for doing things. While it may be possible to retrofit hoauth to use http-enumerator, using the

Re: [Haskell-cafe] How to use http-enumerator with hoauth?

2011-02-15 Thread Jeremy Fitzhardinge
On 02/15/2011 05:49 PM, Diego Souza wrote: Hi, thanks for the feedbacks. They sound very reasonable. Going back in time, the first version was in fact a pure library. However, at some point I changed this as I thought it would make it easier to use, which might have been a mistake of mine.

Re: [Haskell-cafe] How to use http-enumerator with hoauth?

2011-02-15 Thread Jeremy Fitzhardinge
On 02/15/2011 08:02 PM, Michael Snoyman wrote: On Wed, Feb 16, 2011 at 2:05 AM, Jeremy Fitzhardinge jer...@goop.org wrote: On 02/15/2011 02:14 PM, Vincent Hanquez wrote: Clearly, http-enumerator is the best package for doing http/https. however since it's pretty new, lots of package still uses

[Haskell-cafe] Trying to sort out multiparameter type classes and their instances

2009-12-01 Thread Jeremy Fitzhardinge
I'm playing around with some types to represent a game board (like Go, Chess, Scrabble, etc). I'm using a type class to represent the basic Board interface, so I can change the implementation freely: class Board b pos piece where -- Update board with piece played at pos play :: b pos

Re: [Haskell-cafe] Trying to sort out multiparameter type classes and their instances

2009-12-01 Thread Jeremy Fitzhardinge
On 12/01/09 15:12, Daniel Fischer wrote: Am Dienstag 01 Dezember 2009 23:34:46 schrieb Jeremy Fitzhardinge: I'm playing around with some types to represent a game board (like Go, Chess, Scrabble, etc). I'm using a type class to represent the basic Board interface, so I can change

Re: [Haskell-cafe] Trying to sort out multiparameter type classes and their instances

2009-12-01 Thread Jeremy Fitzhardinge
On 12/01/09 17:38, Daniel Fischer wrote: Am Mittwoch 02 Dezember 2009 01:43:04 schrieb Jeremy Fitzhardinge: On 12/01/09 15:12, Daniel Fischer wrote: Am Dienstag 01 Dezember 2009 23:34:46 schrieb Jeremy Fitzhardinge: I'm playing around with some types to represent a game board