Search code examples
haskellfunctional-programmingnotificationsdbuslibnotify

How can I write a notification server in Haskell?


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?


Solution

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