stack-0.1.10.1: The Haskell Tool Stack

Safe HaskellNone
LanguageHaskell2010

Stack.Init

Synopsis

Documentation

initProject :: (MonadIO m, MonadMask m, MonadReader env m, HasConfig env, HasHttpManager env, HasGHCVariant env, MonadLogger m, MonadBaseControl IO m) => Path Abs Dir -> InitOpts -> m () Source

Generate stack.yaml

data InitOpts Source

Constructors

InitOpts 

Fields

tryDeprecatedPath Source

Arguments

:: (MonadIO m, MonadLogger m) 
=> Maybe Text

Description of file for warning (if Nothing, no deprecation warning is displayed)

-> (Path Abs a -> m Bool)

Test for existence

-> Path Abs a

New path

-> Path Abs a

Deprecated path

-> m (Path Abs a, Bool)

(Path to use, whether it already exists)

If deprecated path exists, use it and print a warning. Otherwise, return the new path.

getImplicitGlobalProjectDir :: (MonadIO m, MonadLogger m) => Config -> m (Path Abs Dir) Source

Get the location of the implicit global project directory. If the directory already exists at the deprecated location, its location is returned. Otherwise, the new location is returned.