Protobuf decoder in Haskell - random hacking