Haskell AIM Client - a cool proof of concept
Haskell has been my favorite programming language in the past month, and for good reason. Its (purely) functional and has strong, static typing.
The language feels more graceful to me, where design and function are key. It is a joy to program in and I would love to keep exploring it.
On my path to learning a new language, I usually try to implement something to get some real-world experience. In this instance, I have chosen to implement an Open AIM client. AIM operates on the legacy TOC(text based) protocol, or the feature full OSCAR protocol, which is what most AIM clients use. I decided that OSCAR would be more fun to do, especially with the three step login process.
The client that I wrote is very simple -- handles login to AIM and just sits there. It can get IM's though. The bulk of the AIM client that I enjoyed writing was the protocol handlers, and implementing the login process.
It would be very easy to extend this client to be a bot, if you are looking for a practical use for it. For me, the learning experience is enough.
The main function is listed below.
If you want to try out this AIM client, you must have an Open AIM Developer key.
The first step is to download the source and use cabal to configure, build, and install it.
And then run it.
The output will look something like this:
Like I said, the client is very simple, and just sits and waits. When you login you will see some information about your buddy list, and other AIM login data.