Stack overflow with Data.Binary