The System Event Manager

Bas van Dijk v.dijk.bas at
Mon Apr 4 00:26:12 CEST 2011

On 30 March 2011 11:16, Johan Tibell <johan.tibell at> wrote:
> Apologies for the late reply.

Thanks for your reply.

> I general I support having a way to get at the system event manager.
> Note that in the future we might have one event manager per capability
> so we might add getSystemEventManagerOn :: Int -> IO (Maybe
> EventManager) where the first argument would be the capability.

That makes sense. But let's propose that one when we need it.

> The question in my mind is whether getSystemEventManager* should
> return IO EventManager or IO (Maybe EventManager). I don't like having
> an API which conditionally exports different entities depending on
> some CPP, this means that the CPP code needs to be copied into every
> use sight as well. That argues for having it return (Maybe
> EventManager).

Agreed. I will update the patch.



More information about the Libraries mailing list