control-timeout: deprecated?
Thomas DuBuisson
thomas.dubuisson at gmail.com
Wed Jun 10 18:24:30 EDT 2009
Erik,
control-event 1.0.0.0 is uploaded [1]. Haddock documents will be
available in due time. If you don't have any fancy needs then just
use Control.Event.Relative.addEvent and give it a time (in ms) and an
action :: IO (). Control.Event and Control.Event.Timeout are still
there. Let me know if you have issues.
Thomas
[1] http://hackage.haskell.org/cgi-bin/hackage-scripts/package/control-event
On Tue, Jun 9, 2009 at 4:03 PM, Erik de Castro Lopo<mle+hs at mega-nerd.com> wrote:
> Thomas DuBuisson wrote:
>
>> No, I intended to match function types to allow a seemless transition.
>> This is a bug.
>
> :-)
>
>> Still, I'm questioning the value in supporting a
>> compatability API for a depricated package
>
> Well, the value you provide is that your module replaces the deprecated
> one.
>
>> - especially seeing as it
>> depends on the unsafePeformGlobalBadness hack.
>
> If that hack is the only way to provide the functionality then yes its
> probably best to drop it.
>
>> I could add a module
>> Control.Event.Relative to allow relative times using just forkIO and
>> threadId (a lighter weight solution than the current bloatware), but
>> that would just use IO and no STM. What would be useful for your
>> network-dns work?
>
> Yes, I think it probably would be.
>
>> Documentation for Control.Event.TImeout? I assumed that people using
>> the module would be familure with Control.Timeout - perhaps its time
>> for that assumption to change.
>
> Well the documentation for Control.Event.Timeout could have pointed to
> Control.Timeout.
>
> The only really went looking was when I found that the APIs were
> different :-).
>
> Cheers,
> Erik
> --
> ----------------------------------------------------------------------
> Erik de Castro Lopo
> http://www.mega-nerd.com/
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://www.haskell.org/mailman/listinfo/libraries
>
More information about the Libraries
mailing list