cab-0.2.7: A maintenance command of Haskell cabal packages

Safe HaskellSafe-Inferred

Distribution.Cab.Sandbox

Synopsis

Documentation

getSandbox :: IO (Maybe FilePath)Source

Find a sandbox config file by tracing ancestor directories, parse it and return the package db path

getSandboxOpts :: Maybe FilePath -> StringSource

Generate GHC options for package db according to GHC version.

>>> getSandboxOpts Nothing
""
>>> getSandboxOpts (Just "/path/.cabal-sandbox/i386-osx-ghc-7.6.3-packages.conf.d")
"-package-db /path/.cabal-sandbox/i386-osx-ghc-7.6.3-packages.conf.d"
>>> getSandboxOpts (Just "/path/.cabal-sandbox/i386-osx-ghc-7.4.1-packages.conf.d")
"-package-conf /path/.cabal-sandbox/i386-osx-ghc-7.4.1-packages.conf.d"