packages feed

hinstaller 2007.5.13 → 2008.2.16

raw patch · 2 files changed

+24/−19 lines, 2 filesdep +bytestringdep +directorydep +processdep ~Cabalnew-uploader

Dependencies added: bytestring, directory, process

Dependency ranges changed: Cabal

Files

hinstaller.cabal view
@@ -1,15 +1,8 @@-name: hinstaller-version: 2007.5.13-stability: Beta-copyright: Matthew Sackman-category: System-maintainer: matthew@wellquite.org-author: Matthew Sackman-homepage: http://www.wellquite.org/hinstaller/-license: LGPL-license-file: LICENSE-build-depends: base, template-haskell, filepath, Cabal-synopsis: Installer wrapper for Haskell applications+name:          hinstaller+version:       2008.2.16+stability:     Beta+category:      System+synopsis:      Installer wrapper for Haskell applications description:   This module allows you to incorporate arbitrary files into a haskell module   during compilation. The files are then available to you through functions@@ -20,9 +13,19 @@   The current implementation is now reasonably efficient. However, it does   require that you have a C compiler installed which can be invoked through   @cc@.+author:     Matthew Sackman+copyright:  Matthew Sackman+maintainer: Matthew Sackman <matthew@wellquite.org>+homepage:   http://www.wellquite.org/hinstaller/+license:    LGPL+license-file: LICENSE+build-depends: base, template-haskell, directory, process, filepath, Cabal>=1.2.3.0, bytestring+build-type:    Simple+tested-with:   GHC==6.8.2+ exposed-modules: System.Installer-other-modules: System.Installer.TH, System.Installer.Foreign-ghc-options: -O2 -Wall -fno-warn-name-shadowing-hs-source-dirs: src, examples+other-modules:   System.Installer.TH, System.Installer.Foreign+ghc-options:     -O2 -Wall -fno-warn-name-shadowing+hs-source-dirs:  src, examples extra-source-files: examples/Example01.hs, examples/file01.txt, examples/file02.txt 
src/System/Installer/Foreign.hs view
@@ -17,9 +17,10 @@ import Data.Maybe import qualified Data.ByteString as B import Distribution.Simple-import Distribution.Setup+import Distribution.Simple.Setup import Distribution.PackageDescription import Distribution.Simple.LocalBuildInfo+import Distribution.Verbosity  writeCHeaderFile :: Handle -> String -> IO () writeCHeaderFile outH name@@ -111,20 +112,21 @@ cabalCleanHInstallerDir :: Args -> BuildFlags -> PackageDescription ->                            LocalBuildInfo -> IO ExitCode cabalCleanHInstallerDir _ buildflags _ _-    = do { if verbosity > 0+    = do { if silencep            then print "Cleaning hinstaller-tmp directory..."            else return ()          ; dirExists <- doesDirectoryExist hInstallerTmpDir          ; if dirExists            then do { removeDirectoryRecursive hInstallerTmpDir-                   ; if verbosity > 0+                   ; if silencep                      then print "Successfully cleaned hinstaller-tmp directory."                      else return ()                    }-           else if verbosity > 0+           else if silencep                 then print "hinstaller-tmp directory not found, nothing to clean."                 else return ()          ; return ExitSuccess          }     where       verbosity = buildVerbose buildflags+      silencep = verbosity > silent