Posts tagged ‘haskell’

Apple Push Notification Library for Haskell

I have been working with Apple’s Push Notification service recently and decided to make a library to send notifications with Haskell. It is very simple and has a few helpers to make notifications with an alert, sound, etc,.

ApplePush Hackage

ApplePush Documentation

When using the library, you must use an SSL tunnel, because Haskell’s SSL support is incomplete. I use stunnel4, which works great, and offloads the SSL processing as well. Here are some basic instructions on getting started with the library.

Continue reading ‘Apple Push Notification Library for Haskell’ »

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.

Continue reading ‘Haskell AIM Client – a cool proof of concept’ »