Now works with GHC HEAD
[packages/filepath.git] / filepath.cabal
index 570263d..93d6405 100644 (file)
@@ -1,42 +1,67 @@
-Name:           filepath
-Version:        1.3.0.2
--- GHC 7.6.1 released with 1.3.0.1
-License:        BSD3
+cabal-version:  >= 1.18
+name:           filepath
+version:        1.4.1.2
+-- NOTE: Don't forget to update ./changelog.md
+license:        BSD3
 license-file:   LICENSE
-Author:         Neil Mitchell
-Maintainer:     libraries@haskell.org
-bug-reports:    http://ghc.haskell.org/trac/ghc/newticket?component=libraries%20%28other%29&keywords=filepath
-Homepage:       http://www-users.cs.york.ac.uk/~ndm/filepath/
-Category:       System
+author:         Neil Mitchell <ndmitchell@gmail.com>
+maintainer:     Neil Mitchell <ndmitchell@gmail.com>
+copyright:      Neil Mitchell 2005-2017
+bug-reports:    https://github.com/haskell/filepath/issues
+homepage:       https://github.com/haskell/filepath#readme
+category:       System
 build-type:     Simple
-Synopsis:       Library for manipulating FilePaths in a cross platform way.
-cabal-version:  >=1.10
-tested-with:    GHC==7.6.3, GHC==7.6.2, GHC==7.6.1, GHC==7.4.2, GHC==7.4.1, GHC==7.2.2, GHC==7.2.1, GHC==7.0.4, GHC==7.0.3, GHC==7.0.2, GHC==7.0.1, GHC==6.12.3
+synopsis:       Library for manipulating FilePaths in a cross platform way.
+tested-with:    GHC==8.0.2, GHC==7.10.3, GHC==7.8.4, GHC==7.6.3, GHC==7.4.2
+description:
+    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:
+    .
+    * "System.FilePath.Posix" manipulates POSIX\/Linux style @FilePath@ values (with @\/@ as the path separator).
+    .
+    * "System.FilePath.Windows" manipulates Windows style @FilePath@ values (with either @\\@ or @\/@ as the path separator, and deals with drives).
+    .
+    * "System.FilePath" is an alias for the module appropriate to your platform.
+    .
+    All three modules provide the same API, and the same documentation (calling out differences in the different variants).
 
-Extra-Source-Files:
+extra-source-files:
     System/FilePath/Internal.hs
+extra-doc-files:
     README.md
+    changelog.md
 
-Library
-    default-language: Haskell98
+source-repository head
+    type:     git
+    location: https://github.com/haskell/filepath.git
+
+library
+    default-language: Haskell2010
     other-extensions:
         CPP
-    if impl(GHC>=7.2)
+        PatternGuards
+    if impl(GHC >= 7.2)
         other-extensions: Safe
 
-    Exposed-modules:
+    exposed-modules:
         System.FilePath
         System.FilePath.Posix
         System.FilePath.Windows
 
-    Build-Depends:
-        base >= 4 && < 4.8
+    build-depends:
+        base >= 4 && < 4.11
 
-source-repository head
-    type:     git
-    location: http://git.haskell.org/packages/filepath.git
+    ghc-options: -Wall
 
-source-repository this
-    type:     git
-    location: http://git.haskell.org/packages/filepath.git
-    tag:      filepath-1.3.0.2-release
+test-suite filepath-tests
+    type: exitcode-stdio-1.0
+    default-language: Haskell2010
+    main-is: Test.hs
+    ghc-options: -main-is Test
+    hs-source-dirs: tests
+    other-modules:
+        TestGen
+        TestUtil
+    build-depends:
+        filepath,
+        base,
+        QuickCheck >= 2.7 && < 2.10