packages feed

semaphore-compat-1.0.0: semaphore-compat.cabal

cabal-version: 3.0

name:
    semaphore-compat
version:
    1.0.0
license:
    BSD-3-Clause

author:
    The GHC team
maintainer:
    ghc-devs@haskell.org
homepage:
    https://gitlab.haskell.org/ghc/semaphore-compat
bug-reports:
    https://gitlab.haskell.org/ghc/ghc/issues/new

category:
    System
synopsis:
    Cross-platform abstraction for system semaphores
description:
    This package provides a cross-platform implementation of system semaphores
    that abstracts over the `unix` and `Win32` libraries.

build-type:
    Simple

extra-source-files:
    changelog.md
  , readme.md


source-repository head
    type:     git
    location: https://gitlab.haskell.org/ghc/semaphore-compat.git

library
    hs-source-dirs:
        src

    exposed-modules:
        System.Semaphore

    build-depends:
        base
          >= 4.12 && < 4.20
      , exceptions
          >= 0.7  && < 0.11

    if os(windows)
      build-depends:
        Win32
          >= 2.13.4.0 && < 2.14
    else
      build-depends:
        unix
          >= 2.8.1.0 && < 2.9

    default-language:
        Haskell2010