How can I write a notification server in Haskell?

80 Views Asked by At

I tried to understand a bit better how notifications work on Linux, then I played around with the dbus library and, after some silly mistakes, I managed to write a toy "client" that when executed requests the notification server to show a hardcoded message.

But now my interest is: is the dbus library also useful if I want to write a notification server?

If yes, then can you point me at the relevant part of the documentation?

If no, then what else can I use?

1

There are 1 best solutions below

1
Daniel Wagner On BEST ANSWER

Despite the name "Client", yes, Dbus.Client is also used for writing dbus-based servers. The relevant documentation section is labeled Receiving method calls.