Haskell: Simple 8-bit checksum implementation
Published by emacstheviking on Thu, 06/23/2011 - 15:49
In my continued quest to use Haskell for everything, I wrote this today: it creates a simple checksum for a Nokia CIMD2 communications driver that I am writing in PHP.
I needed a second source of verification that my PHP code was doing the right thing so I banged this out in fifteen minutes, warts and all. It may not be "perfect" Haskell but for me to get this done in fifteen minutes has been a real confidence booster, both in reading the error messages and understanding what I am doing.