95cf8f1e0cb54fad59395a2495dc2f25f75925e8
[packages/filepath.git] / filepath.cabal
1 cabal-version:  >= 1.18
2 name:           filepath
3 version:        1.4.2
4 -- NOTE: Don't forget to update ./changelog.md
5 license:        BSD3
6 license-file:   LICENSE
7 author:         Neil Mitchell <ndmitchell@gmail.com>
8 maintainer:     Neil Mitchell <ndmitchell@gmail.com>
9 copyright:      Neil Mitchell 2005-2018
10 bug-reports:    https://github.com/haskell/filepath/issues
11 homepage:       https://github.com/haskell/filepath#readme
12 category:       System
13 build-type:     Simple
14 synopsis:       Library for manipulating FilePaths in a cross platform way.
15 tested-with:    GHC==8.4.2, GHC==8.2.2, GHC==8.0.2, GHC==7.10.3, GHC==7.8.4, GHC==7.6.3, GHC==7.4.2
16 description:
17     This package provides functionality for manipulating @FilePath@ values, and is shipped with both <https://www.haskell.org/ghc/ GHC> and the <https://www.haskell.org/platform/ Haskell Platform>. It provides three modules:
18     .
19     * "System.FilePath.Posix" manipulates POSIX\/Linux style @FilePath@ values (with @\/@ as the path separator).
20     .
21     * "System.FilePath.Windows" manipulates Windows style @FilePath@ values (with either @\\@ or @\/@ as the path separator, and deals with drives).
22     .
23     * "System.FilePath" is an alias for the module appropriate to your platform.
24     .
25     All three modules provide the same API, and the same documentation (calling out differences in the different variants).
26
27 extra-source-files:
28     System/FilePath/Internal.hs
29 extra-doc-files:
30     README.md
31     changelog.md
32
33 source-repository head
34     type:     git
35     location: https://github.com/haskell/filepath.git
36
37 library
38     default-language: Haskell2010
39     other-extensions:
40         CPP
41         PatternGuards
42     if impl(GHC >= 7.2)
43         other-extensions: Safe
44
45     exposed-modules:
46         System.FilePath
47         System.FilePath.Posix
48         System.FilePath.Windows
49
50     build-depends:
51         base >= 4 && < 4.13
52
53     ghc-options: -Wall
54
55 test-suite filepath-tests
56     type: exitcode-stdio-1.0
57     default-language: Haskell2010
58     main-is: Test.hs
59     ghc-options: -main-is Test
60     hs-source-dirs: tests
61     other-modules:
62         TestGen
63         TestUtil
64     build-depends:
65         filepath,
66         base,
67         QuickCheck >= 2.7 && < 2.12