Modernize and refactor `haskell98.cabal`
authorHerbert Valerio Riedel <hvr@gnu.org>
Sat, 26 Oct 2013 20:15:45 +0000 (22:15 +0200)
committerHerbert Valerio Riedel <hvr@gnu.org>
Sat, 26 Oct 2013 20:17:53 +0000 (22:17 +0200)
 - Update to `cabal-version>=0.10`
 - add missing `Setup.hs`
 - add `Prelude` category
 - update version constraints
 - update bug-reports URL
 - add `repository this`

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
haskell98.cabal

index 7544d16..92cf90f 100644 (file)
@@ -1,43 +1,91 @@
-name:          haskell98
-version:       2.0.0.3
+name:           haskell98
+version:        2.0.0.3
 -- GHC 7.6.1 released with 2.0.0.2
-license:       BSD3
-license-file:  LICENSE
-maintainer:    libraries@haskell.org
-bug-reports: http://hackage.haskell.org/trac/ghc/newticket?component=libraries/haskell98
-synopsis:      Compatibility with Haskell 98
-category:   Haskell98
-description:
-       This package provides compatibility with the modules of Haskell
-       98 and the FFI addendum, by means of wrappers around modules from
-       the base package (which in many cases have additional features).
-       However Prelude, Numeric and Foreign are provided directly by
-       the base package.
-homepage:      http://www.haskell.org/definition/
+license:        BSD3
+license-file:   LICENSE
+maintainer:     libraries@haskell.org
+bug-reports:    http://ghc.haskell.org/trac/ghc/newticket?component=libraries/haskell98
+synopsis:       Compatibility with Haskell 98
+category:       Haskell98, Prelude
+homepage:       http://www.haskell.org/definition/
 build-type:     Simple
-Cabal-Version: >= 1.6
+cabal-version:  >=1.10
+description:
+    This package provides compatibility with the modules of Haskell
+    98 and the FFI addendum, by means of wrappers around modules from
+    the base package (which in many cases have additional features).
+    However Prelude, Numeric and Foreign are provided directly by
+    the base package.
+
+source-repository head
+    type:     git
+    location: http://git.haskell.org/packages/haskell98.git
+
+source-repository this
+    type:     git
+    location: http://git.haskell.org/packages/haskell98.git
+    tag:      haskell98-2.0.0.3-release
 
 Library
-    build-depends:     base        >= 4.5 && < 5,
-                    directory   >= 1.1 && < 1.3,
-                    old-time    >= 1.0 && < 1.2,
-                    old-locale  >= 1.0 && < 1.1,
-                    process     >= 1.0 && < 1.3,
-                    array       >= 0.3 && < 0.6,
-                    time        >= 1.2 && < 1.5
+    default-language: Haskell98
+    other-extensions:
+        BangPatterns
+        CPP
+        NoImplicitPrelude
+        PackageImports
+    if impl(ghc)
+        other-extensions:
+            Safe
+            Trustworthy
+
+    build-depends:
+        array       >= 0.5 && < 0.6,
+        base        >= 4.7 && < 4.8,
+        directory   >= 1.2 && < 1.3,
+        old-locale  >= 1.0 && < 1.1,
+        old-time    >= 1.1 && < 1.2,
+        process     >= 1.2 && < 1.3,
+        time        >= 1.4 && < 1.5
+
+    -- haskell98 is a "hidden" package
+    exposed: False
+
     exposed-modules:
         -- Haskell 98
-        Prelude, Array, CPUTime, Char, Complex, Directory, IO,
-        Ix, List, Locale,
-        Maybe, Monad, Numeric, Random, Ratio, System, Time,
-        -- FFI addendum (Foreign is in the base package)
-        Bits, CError, CForeign, CString, CTypes, ForeignPtr, Int,
-        MarshalAlloc, MarshalArray, MarshalError, MarshalUtils, Ptr,
-        StablePtr, Storable, Word
-    exposed: False
-    extensions: CPP
+        Prelude
 
-source-repository head
-    type:     git
-    location: http://git.haskell.org/packages/haskell98.git
+        Array
+        CPUTime
+        Char
+        Complex
+        Directory
+        IO
+        Ix
+        List
+        Locale
+        Maybe
+        Monad
+        Numeric
+        Random
+        Ratio
+        System
+        Time
+
+        -- FFI addendum (Foreign is in the base package)
+        Bits
+        CError
+        CForeign
+        CString
+        CTypes
+        ForeignPtr
+        Int
+        MarshalAlloc
+        MarshalArray
+        MarshalError
+        MarshalUtils
+        Ptr
+        StablePtr
+        Storable
+        Word
 
+    ghc-options: -Wall