[commit: packages/haskell98] master: Modernize and refactor `haskell98.cabal` (aba8666)

git at git.haskell.org git at git.haskell.org
Sat Oct 26 20:57:35 UTC 2013


Repository : ssh://git@git.haskell.org/haskell98

On branch  : master
Link       : http://git.haskell.org/packages/haskell98.git/commitdiff/aba86664c1779e9a1b4b47318e6de1ef80b76d0c

>---------------------------------------------------------------

commit aba86664c1779e9a1b4b47318e6de1ef80b76d0c
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Sat Oct 26 22:15:45 2013 +0200

    Modernize and refactor `haskell98.cabal`
    
     - 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 at gnu.org>


>---------------------------------------------------------------

aba86664c1779e9a1b4b47318e6de1ef80b76d0c
 haskell98.cabal |  118 ++++++++++++++++++++++++++++++++++++++-----------------
 1 file changed, 83 insertions(+), 35 deletions(-)

diff --git a/haskell98.cabal b/haskell98.cabal
index 7544d16..92cf90f 100644
--- a/haskell98.cabal
+++ b/haskell98.cabal
@@ -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 at 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 at 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



More information about the ghc-commits mailing list