packages feed

executable-path-0.0.1: executable-path.cabal

Name:                executable-path
Version:             0.0.1
Synopsis:            Finding out the full path of the executable.

Description:         The documentation of "System.Environment.getProgName" says that

                     \"However, this is hard-to-impossible to implement on some non-Unix OSes, 
                     so instead, for maximum portability, we just return the leafname 
                     of the program as invoked.\"
                     
                     This library tries to provide the missing path.

License:             PublicDomain
License-file:        LICENSE
Author:              Balazs Komuves
Maintainer:          bkomuves (plus) hackage (at) gmail (dot) com
Homepage:            http://code.haskell.org/~bkomuves/
Stability:           Experimental
Category:            System
Tested-With:         GHC == 6.10.1 
Cabal-Version:       >= 1.2
Build-Type:          Simple

Flag splitBase
  Description: Choose the new smaller, split-up base package.

Library
  if flag(splitBase)
    Build-Depends:       base >= 3 && < 5 , filepath
  else
    Build-Depends:       base >= 2 && < 3
    
  Exposed-Modules:     System.Environment.Executable   
  Extensions:          ForeignFunctionInterface, CPP, EmptyDataDecls
  Hs-Source-Dirs:      .
  
  if os(darwin)
    Frameworks:          CoreFoundation  
    Other-Modules:       System.Environment.Executable.MacOSX
   
  if os(windows) 
    Extra-Libraries:     kernel32
    Other-Modules:       System.Environment.Executable.Win32
    
  if os(linux) 
    Build-Depends:       unix
    Other-Modules:       System.Environment.Executable.Linux
    
  if os(freebsd) 
    Build-Depends:       unix
    Other-Modules:       System.Environment.Executable.FreeBSD

  if os(openbsd) || os(netbsd)
    Build-Depends:       unix
    Other-Modules:       System.Environment.Executable.BSD

  if os(solaris) 
    Build-Depends:       unix
    Other-Modules:       System.Environment.Executable.Solaris