haskell / criterion

A powerful but simple library for measuring the performance of Haskell code.
http://www.serpentine.com/criterion
BSD 2-Clause "Simplified" License
501 stars 86 forks source link

Support building with `optparse-applicative-0.18.*` #275

Closed RyanGlScott closed 1 year ago

RyanGlScott commented 1 year ago

This adds the necessary CPP to support building criterion with optparse-applicative-0.18.* as well as older versions of the library. In a future, major release of criterion, we will require optparse-applicative-0.18.* as the minimum and explicitly depend on prettyprinter.