summaryrefslogtreecommitdiff
path: root/bindings-posix.cabal
blob: 9f8a499af8cb3490576d684f50cfacf75d7361a6 (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
cabal-version: >= 1.2.3
name: bindings-posix
synopsis:
  Low level bindings to posix.
version: 1.2.3
license: BSD3
license-file: LICENSE
maintainer: MaurĂ­cio C. Antunes <mauricio.antunes@gmail.com>
author: MaurĂ­cio C. Antunes
bug-reports: http://bitbucket.org/mauricio/bindings-dsl/issues
build-type: Simple
category: FFI
library
  hs-source-dirs: src
  extensions:
    ForeignFunctionInterface
  build-depends:
    base >= 3 && < 5,
    bindings-DSL >= 1.0.12 && < 1.1
  exposed-modules:
    Bindings.Posix
    Bindings.Posix.Errno
    Bindings.Posix.Fcntl
    Bindings.Posix.Locale
    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
  cc-options:
    "-D_ISOC99_SOURCE"
    "-D_POSIX_C_SOURCE=200112L"
    "-D_XOPEN_SOURCE=600"
  c-sources: src/inlines.c
  extra-libraries: pthread