Fix breakByte and spanByte rewrite rules
authorBen Gamari <ben@smart-cactus.org>
Tue, 8 Mar 2016 16:53:50 +0000 (17:53 +0100)
committerBen Gamari <ben@smart-cactus.org>
Mon, 28 Mar 2016 14:53:25 +0000 (16:53 +0200)
commit4b97b6d0854c86f5c7acf3df40d5e22a0acf74e4
tree2c5606cb1615be1f0b12a384704967947f0e656d
parentd562ea96bb0425d07a99851f696d59bc144c0258
Fix breakByte and spanByte rewrite rules

Previously these were matching on (==), which was rewritten by the class
op rule before the breakByte rule had an opportunity to fire (#70).
Unfortunately fixing this requires that we change the Eq instances
provided by GHC. This has been done in GHC 8.0.1 (base-4.9.0).
Data/ByteString.hs
Data/ByteString/Char8.hs