Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow extra Clock constructors in clockToConst
My Mac (10.14) has `CLOCK_MONOTONIC_RAW` defined: ``` Prelude> import System.Clock Prelude System.Clock> :info Clock data Clock = Monotonic | Realtime | ProcessCPUTime | ThreadCPUTime | MonotonicRaw ``` Which then errors in `clockToConst` if `MonotonicRaw` is passed. The logic for clockToConst should follow the same logic as the Clock constructor; that is, don't put the CLOCK_MONOTONIC_RAW/CLOCK_BOOTTIME/etc. within the Linux else-block, but only check the relevant C++ flags.
- Loading branch information