summaryrefslogtreecommitdiff
path: root/bindings-posix.cabal
blob: 7b529ee42aeac508c24f41f9713fd3b8b907d01a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
cabal-version: >= 1.8
name: bindings-posix
synopsis:
  Project bindings-* raw interface to Posix
description:
  Low level bindings to Posix standard library, part
  of the @bindings-*@ project. See:
  .
  <https://github.com/jwiegley/bindings-dsl>
  .
  <http://pubs.opengroup.org/onlinepubs/9699919799/idx/headers.html>
version: 1.2.7
license: BSD3
license-file: LICENSE
maintainer: John Wiegley <johnw@newartisans.com>
author: MaurĂ­cio C. Antunes
bug-reports: https://github.com/jwiegley/bindings-dsl/issues
build-type: Simple
category: FFI
library
  hs-source-dirs: src
  extensions:
    ForeignFunctionInterface
  build-depends:
    base >= 3 && < 5,
    bindings-DSL >= 1.0.16 && < 1.1
  exposed-modules:
    Bindings.Posix
    Bindings.Posix.Errno
    Bindings.Posix.Fcntl
    Bindings.Posix.Locale
    Bindings.Posix.Regex
    Bindings.Posix.Signal
    Bindings.Posix.Sys
    Bindings.Posix.Sys.Mman
    Bindings.Posix.Sys.Select
    Bindings.Posix.Sys.Types
    Bindings.Posix.Sys.Utsname
    Bindings.Posix.Time
    Bindings.Posix.Unistd
  c-sources:
    src/Bindings/Posix/Sys/Select.c
    src/Bindings/Posix/Time.c
  cc-options:
    "-D_ISOC99_SOURCE"
    "-D_POSIX_C_SOURCE=200809L"
    "-D_XOPEN_SOURCE=600"
  extra-libraries: pthread
  if !os(osx)
    exposed-modules:
      Bindings.Posix.Mqueue
    extra-libraries: rt
source-repository head
  type: git
  location: git://github.com/jwiegley/bindings-dsl
  branch: master
  subdir: bindings-posix