Tighten Safe Haskell bounds, fixes new warning in GHC 7.10.
[packages/unix.git] / unix.cabal
1 name:           unix
2 version:        2.7.0.2
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.Process
100         System.Posix.Process.Internals
101         System.Posix.Process.ByteString
102
103         System.Posix.Temp
104         System.Posix.Temp.ByteString
105
106         System.Posix.Terminal
107         System.Posix.Terminal.ByteString
108
109     other-modules:
110         System.Posix.Directory.Common
111         System.Posix.DynamicLinker.Common
112         System.Posix.Files.Common
113         System.Posix.IO.Common
114         System.Posix.Process.Common
115         System.Posix.Terminal.Common
116
117     ghc-options: -Wall
118
119     include-dirs: include
120     includes:
121         HsUnix.h
122         execvpe.h
123     install-includes:
124         HsUnix.h
125         execvpe.h
126     c-sources:
127         cbits/HsUnix.c
128         cbits/dirUtils.c
129         cbits/execvpe.c