Update HistoryBuffer.hs