About

Metadata

  • Last updated , by NicolasTrangez
  • License BSD-3-Clause
  • Categories Systems Programming
  • Maintained by: ikke@nicolast.be

  • Lottery factor: 0

Links

Installation

Tested Compilers

  1. 9.6.1
  2. 9.4.2
  3. 9.2.4
  4. 9.0.2
  5. 8.10.7

Package Flags

Use the -f option with cabal commands to enable flags

    bundled-libpsx (on by default)

    Use the bundled libpsx instead of a (potentially broken) system-provided version. See cbits/psx/License.

    werror (off by default)

    Turn compiler warnings into errors.

Readme

psx: Haskell bindings for libpsx

This library embeds libpsx in a GHC Haskell-compiled application.

Note libpsx performs some trickery with signal handling in a process. Furthermore, when using this library, sigfillset will be wrapped so SIGSYS is not set, in order for the GHC RTS ticker thread not to block the signal and work properly with libpsx.

See this GHC proposal for a potential future replacement of this library using functionality built into the GHC RTS.

Warning: libpsx on current Ubuntu and Debian systems (from libcap 2.44) is broken. Hence, this library contains a bundled version of libpsx by default. Disable the bundled-libpsx flag to use a system-provided version of the library, which must be from libcap version 2.46 or higher.