Looks like a job for Data.Binary.

> I'd like to use it with just the libraries that are part of the platform


I forgot to mention, Data.Binary does not seem to be in the platform.

Regards,
Kashyap