cabal-install-3.10.1.0: The command-line interface for Cabal and Hackage.
Copyright(c) Benedikt Huber 2009
LicenseBSD-like
Maintainercabal-devel@haskell.org
Stabilityprovisional
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Distribution.Client.Init.NonInteractive.Heuristics

Description

Heuristics for creating initial cabal files.

Synopsis

Documentation

guessPackageName :: Interactive m => FilePath -> m PackageName Source #

Guess the package name based on the given root directory.

guessMainFile :: Interactive m => FilePath -> m HsFilePath Source #

Guess the main file, returns a default value if none is found.

guessLicense :: Interactive m => InitFlags -> m SpecLicense Source #

Try to guess the license from an already existing LICENSE file in the package directory, comparing the file contents with the ones listed in Licenses.hs, for now it only returns a default value.

guessAuthorName :: Interactive m => m String Source #

Guess author and email using git configuration options.

guessCabalSpecVersion :: Interactive m => m CabalSpecVersion Source #

Juggling characters around to guess the desired cabal version based on the system's cabal version.

guessLanguage :: Interactive m => Compiler -> m Language Source #

Guess the language specification based on the GHC version

guessPackageType :: Interactive m => InitFlags -> m PackageType Source #

Try to guess the package type from the files in the package directory, looking for unique characteristics from each type, defaults to Executable.

guessSourceDirectories :: Interactive m => InitFlags -> m [FilePath] Source #

Try to guess the source directories, using a default value as fallback.

guessApplicationDirectories :: Interactive m => InitFlags -> m [FilePath] Source #

Try to guess the application directories from the package directory, using a default value as fallback.