[commit: packages/process] master: Modernize `process.cabal` (fae91ea)

git at git.haskell.org git at git.haskell.org
Fri Sep 27 10:21:21 CEST 2013


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

On branch  : master
Link       : http://git.haskell.org/packages/process.git/commitdiff/fae91ea854853c6f752d32461bacc23137c84bbf

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

commit fae91ea854853c6f752d32461bacc23137c84bbf
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Fri Sep 27 09:18:23 2013 +0200

    Modernize `process.cabal`
    
    This includes declaring all potentially used language pragmas in
    `other-extensions` and declare the `CPP` in the `.hs` files instead of
    relying on `default-extensions`.
    
    The confusing NHC98/HUGS conditionals should be removed, as the package
    most probably won't work w/ those compilers anyway these days.
    
    Signed-off-by: Herbert Valerio Riedel <hvr at gnu.org>


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

fae91ea854853c6f752d32461bacc23137c84bbf
 process.cabal |   79 +++++++++++++++++++++++++++++----------------------------
 1 file changed, 40 insertions(+), 39 deletions(-)

diff --git a/process.cabal b/process.cabal
index aac0cce..ef9cf3b 100644
--- a/process.cabal
+++ b/process.cabal
@@ -1,56 +1,57 @@
-name:         process
-version:      1.2.0.0
+name:          process
+version:       1.2.0.0
 -- GHC 7.6.1 released with 1.1.0.2
-license:      BSD3
-license-file: LICENSE
-maintainer:   libraries at haskell.org
-bug-reports: http://hackage.haskell.org/trac/ghc/newticket?component=libraries/process
-synopsis:     Process libraries
-category:     System
+license:       BSD3
+license-file:  LICENSE
+maintainer:    libraries at haskell.org
+bug-reports:   http://hackage.haskell.org/trac/ghc/newticket?component=libraries/process
+synopsis:      Process libraries
+category:      System
+build-type:    Configure
+cabal-version: >=1.10
 description:
     This package contains libraries for dealing with system processes.
+
 extra-source-files:
     aclocal.m4 configure.ac configure
     include/HsProcessConfig.h.in
+
 extra-tmp-files:
     config.log config.status autom4te.cache
     include/HsProcessConfig.h
-build-type:    Configure
-cabal-version: >=1.6
 
 source-repository head
     type:     git
     location: http://git.haskell.org/packages/process.git
 
-Library {
-  exposed-modules: System.Cmd
-  if !impl(nhc98) {
-    exposed-modules:
-        System.Process
-    if impl(ghc)
-        exposed-modules:
-          System.Process.Internals
-    c-sources:
-        cbits/runProcess.c
-    include-dirs: include
-    includes:
-        runProcess.h
-    install-includes:
-        runProcess.h
-        processFlags.h
-        HsProcessConfig.h
-    if os(windows)
-        build-depends: Win32 >=2.2.0.0
-        extra-libraries: kernel32
-    else
-        build-depends: unix
-  }
+library
+    default-language: Haskell2010
+    other-extensions: CPP, ForeignFunctionInterface, InterruptibleFFI, RecordWildCards, Trustworthy
 
-  build-depends: base >= 4.5 && < 5
+    exposed-modules: System.Cmd
+    if !impl(nhc98)
+        exposed-modules:
+            System.Process
+        if impl(ghc)
+            exposed-modules:
+                System.Process.Internals
+        c-sources:
+            cbits/runProcess.c
+        include-dirs: include
+        includes:
+            runProcess.h
+        install-includes:
+            runProcess.h
+            processFlags.h
+            HsProcessConfig.h
+        if os(windows)
+            build-depends: Win32 >=2.2.0.0
+            extra-libraries: kernel32
+        else
+            build-depends: unix
 
-  build-depends: directory >= 1.0 && < 1.3,
-                 filepath  >= 1.1 && < 1.4,
-                 deepseq   >= 1.1 && < 1.4
+    build-depends: base      >= 4.5 && < 5,
+                   directory >= 1.0 && < 1.3,
+                   filepath  >= 1.1 && < 1.4,
+                   deepseq   >= 1.1 && < 1.4
 
-  extensions: CPP
-}




More information about the ghc-commits mailing list