|
Scion.Configure | Portability | portable | Stability | experimental | Maintainer | nominolo@googlemail.com |
|
|
|
Description |
|
|
Synopsis |
|
|
|
Documentation |
|
openOrConfigureCabalProject | Source |
|
:: FilePath | The project root. (Where the .cabal file resides)
| -> FilePath | dist 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:
|
|
|
|
:: FilePath | The project root. (Where the .cabal file resides)
| -> FilePath | dist 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:
|
|
|
|
Something went wrong during cabal configure.
TODO: Add more detail.
| Constructors | | Instances | |
|
|
|
:: FilePath | Path 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 |