cdepillabout / pretty-simple

pretty-printer for Haskell data types that have a Show instance
https://hackage.haskell.org/package/pretty-simple
BSD 3-Clause "New" or "Revised" License
243 stars 29 forks source link

Hexdecimal Regression between 3.3 and 4.0 #102

Closed andrewthad closed 2 years ago

andrewthad commented 2 years ago

In 3.3 and earlier, pretty-simple kept hexadecimal numbers as a single token:

0xbb

The new behavior is this:

0 xbb

I found this because a spec test that relied on the old behavior started failing.

georgefst commented 2 years ago

This is unfortunately a known issue, which may require significant changes to our parser.

Closing in favour of #75.

georgefst commented 2 years ago

Fortunately there's nothing much wrong with 3.3. 4.0 adds features rather than fixing any bugs.