Wrap posix_fadvise(2) and posix_fallocate(2)
[packages/unix.git] / unix.cabal
1 name:           unix
2 version:        2.7.1.0
3 -- NOTE: Don't forget to update ./changelog.md
4 license:        BSD3
5 license-file:   LICENSE
6 maintainer:     libraries@haskell.org
7 homepage:       https://github.com/haskell/unix
8 bug-reports:    https://github.com/haskell/unix/issues
9 synopsis:       POSIX functionality
10 category:       System
11 build-type:     Configure
12 cabal-version:  >= 1.10
13 tested-with:    GHC==7.6.3, GHC==7.6.2, GHC==7.6.1, GHC==7.4.2, GHC==7.4.1
14 description:
15     This package gives you access to the set of operating system
16     services standardised by POSIX 1003.1b (or the IEEE Portable
17     Operating System Interface for Computing Environments -
18     IEEE Std. 1003.1).
19     .
20     The package is not supported under Windows (except under Cygwin).
21
22 extra-source-files:
23     changelog.md
24     config.guess
25     config.sub
26     configure
27     configure.ac
28     include/HsUnix.h
29     include/HsUnixConfig.h.in
30     install-sh
31     unix.buildinfo.in
32
33 extra-tmp-files:
34     autom4te.cache
35     config.log
36     config.status
37     include/HsUnixConfig.h
38     unix.buildinfo
39
40 source-repository head
41     type:     git
42     location: https://github.com/haskell/unix.git
43
44 library
45     default-language: Haskell2010
46     other-extensions:
47         CApiFFI
48         CPP
49         DeriveDataTypeable
50         InterruptibleFFI
51         NoMonomorphismRestriction
52         OverloadedStrings
53         RankNTypes
54
55     if impl(ghc)
56         other-extensions:
57             Safe
58             Trustworthy
59
60     build-depends:
61         base        >= 4.5     && < 4.9,
62         bytestring  >= 0.9.2   && < 0.11,
63         time        >= 1.2     && < 1.6
64
65     exposed-modules:
66         System.Posix
67         System.Posix.ByteString
68
69         System.Posix.Error
70         System.Posix.Resource
71         System.Posix.Time
72         System.Posix.Unistd
73         System.Posix.User
74         System.Posix.Signals
75         System.Posix.Signals.Exts
76         System.Posix.Semaphore
77         System.Posix.SharedMem
78
79         System.Posix.ByteString.FilePath
80
81         System.Posix.Directory
82         System.Posix.Directory.ByteString
83
84         System.Posix.DynamicLinker.Module
85         System.Posix.DynamicLinker.Module.ByteString
86         System.Posix.DynamicLinker.Prim
87         System.Posix.DynamicLinker.ByteString
88         System.Posix.DynamicLinker
89
90         System.Posix.Files
91         System.Posix.Files.ByteString
92
93         System.Posix.IO
94         System.Posix.IO.ByteString
95
96         System.Posix.Env
97         System.Posix.Env.ByteString
98
99         System.Posix.Fcntl
100
101         System.Posix.Process
102         System.Posix.Process.Internals
103         System.Posix.Process.ByteString
104
105         System.Posix.Temp
106         System.Posix.Temp.ByteString
107
108         System.Posix.Terminal
109         System.Posix.Terminal.ByteString
110
111     other-modules:
112         System.Posix.Directory.Common
113         System.Posix.DynamicLinker.Common
114         System.Posix.Files.Common
115         System.Posix.IO.Common
116         System.Posix.Process.Common
117         System.Posix.Terminal.Common
118
119     ghc-options: -Wall
120
121     include-dirs: include
122     includes:
123         HsUnix.h
124         execvpe.h
125     install-includes:
126         HsUnix.h
127         execvpe.h
128     c-sources:
129         cbits/HsUnix.c
130         cbits/dirUtils.c
131         cbits/execvpe.c
132         cbits/ghcrts.c