Parsing and merging of ISO 8583-style bitmaps in Haskell