Skip to content
Snippets Groups Projects
sheaf's avatar
sheaf authored
With GHC MR !8478, GHC is able to spot a redundant pattern match
when RLIM_SAVED_CUR == RLIM_SAVED_MAX, which it wasn't able to
detect before. So we use considerAccessible to avoid a pattern match
check. This unfortunately means we must change the SafeHaskell status
of that module to TrustWorth, as considerAccessible is from GHC.Exts,
which isn't safe.

Alternatives:

  - we can't perform the equality test RLIM_SAVED_CUR == RLIM_SAVED_MAX
    using CPP macros, because one of the values might expand out to
    have casts;
  - turning off pattern match warnings impacts warnings across the whole
    module, instead of the single affected function,
  - adding a dummy equation such as "id True" to the first pattern match
    would work, but seems more ad-hoc.
2a6079a2
History

The unix Package Hackage Build Status

See unix on Hackage for more information.

Installing from Git

To build this package using Cabal directly from Git, you must run autoreconf -i before the usual Cabal build steps (cabal {configure,build,install}). The program autoreconf is part of GNU autoconf. There is no need to run the configure script: cabal configure will do this for you.