Skip to content

Stack install should take a --path option #342

Closed
@drwebb

Description

@drwebb

I tend to keep my user binaries in ~/bin instead of ~/.local/bin. The directory path seems to be set in.

src/Stack/Config.hs
186:        localDir <- liftIO (getAppUserDataDirectory "local") >>= parseAbsDir

getAppUserDataDirectory is defined in System.Directory. Is it should return $HOME/.local always, so it doesn't appear to be able to take a flag or anything. The install function takes both BuildOpts and GlobalOpts parameters, so perhaps such a parameter could live in one of there as a Maybe and be passed as a --path option from the command line.

installCmd :: BuildOpts -> GlobalOpts -> IO ()

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions