scion-0.1.0.2: Haskell IDE librarySource codeContentsIndex
Scion.Configure
Portabilityportable
Stabilityexperimental
Maintainernominolo@googlemail.com
Description
Synopsis
openOrConfigureCabalProject :: FilePath -> FilePath -> [String] -> ScionM ()
configureCabalProject :: FilePath -> FilePath -> [String] -> ScionM ()
data ConfigException = ConfigException
cabalSetupWithArgs :: FilePath -> [String] -> ScionM Bool
Documentation
openOrConfigureCabalProjectSource
:: FilePathThe project root. (Where the .cabal file resides)
-> FilePathdist dir, i.e., directory where to put generated files.
-> [String]command line arguments to configure.
-> ScionM ()

Open or configure a Cabal project using the Cabal library.

Tries to open an existing Cabal project or configures it if opening failed.

Throws:

configureCabalProjectSource
:: FilePathThe project root. (Where the .cabal file resides)
-> FilePathdist dir, i.e., directory where to put generated files.
-> [String]command line arguments to configure. [XXX: currently ignored!]
-> ScionM ()

Configure a Cabal project using the Cabal library.

This is roughly equivalent to calling ./Setup configure on the command line. The difference is that this makes sure to use the same version of Cabal and the GHC API that Scion was built against. This is important to avoid compatibility problems.

If configuration succeeded, sets it as the current project.

TODO: Figure out a way to report more helpful error messages.

Throws:

data ConfigException Source

Something went wrong during cabal configure.

TODO: Add more detail.

Constructors
ConfigException
show/hide Instances
cabalSetupWithArgsSource
:: FilePathPath to .cabal file. TODO: ATM, we only need the directory
-> [String]Command line arguments.
-> ScionM Bool

Do the equivalent of runghc Setup.hs args using the GHC API.

Instead of runghc, this function uses the GHC API so that the correct version of GHC and package database is used.

TODO: Return exception or error message in failure case.

Produced by Haddock version 2.4.2