| Cabal-1.2.3.0: A framework for packaging Haskell software | Source code | Contents | Index

Distribution.Simple.GHC.PackageConfig |

Portability | portable
Stability | alpha
Maintainer | libraries@haskell.org

Description
Explanation: Performs registration for GHC. Specific to ghc-pkg. Creates a GHC package config file. See also `build`, etc.
Synopsis

data GHCPackageConfig = GHCPackage {

name :: String
auto :: Bool
import_dirs :: [String]
source_dirs :: [String]
library_dirs :: [String]
hs_libraries :: [String]
extra_libraries :: [String]
include_dirs :: [String]
c_includes :: [String]
package_deps :: [String]
extra_ghc_opts :: [String]
extra_cc_opts :: [String]
extra_ld_opts :: [String]
framework_dirs :: [String]
extra_frameworks :: [String]

}
mkGHCPackageConfig :: PackageDescription -> LocalBuildInfo -> GHCPackageConfig
defaultGHCPackageConfig :: GHCPackageConfig
showGHCPackageConfig :: GHCPackageConfig -> String
localPackageConfig :: IO FilePath
maybeCreateLocalPackageConfig :: IO Bool
canWriteLocalPackageConfig :: IO Bool
canReadLocalPackageConfig :: IO Bool

Documentation

data GHCPackageConfig | Source

Constructors

GHCPackage |

name :: String |
auto :: Bool |
import_dirs :: [String] |
source_dirs :: [String] |
library_dirs :: [String] |
hs_libraries :: [String] |
extra_libraries :: [String] |
include_dirs :: [String] |
c_includes :: [String] |
package_deps :: [String] |
extra_ghc_opts :: [String] |
extra_cc_opts :: [String] |
extra_ld_opts :: [String] |
framework_dirs :: [String] |
extra_frameworks :: [String] |

mkGHCPackageConfig :: PackageDescription -> LocalBuildInfo -> GHCPackageConfig | Source

defaultGHCPackageConfig :: GHCPackageConfig | Source

showGHCPackageConfig :: GHCPackageConfig -> String | Source

localPackageConfig :: IO FilePath | Source

Where ghc versions < 6.3 keeps the --user files. |return the file, whether it exists, and whether it's readable

maybeCreateLocalPackageConfig | Source

:: IO Bool | success?
If the package file doesn't exist, we should try to create it. If it already exists, do nothing and return true. This does not take into account whether it is readable or writeable.

canWriteLocalPackageConfig :: IO Bool | Source

Check for write permission on the localPackageConfig

canReadLocalPackageConfig :: IO Bool | Source

Check for read permission on the localPackageConfig
Produced by Haddock version 0.8