The code is a bit ugly in order to conform with the type system.
With the new irc-client 0.2.0, everything works fine.