hsdev-0.3.1.3: Haskell development library

Safe HaskellNone
LanguageHaskell98

HsDev.Sandbox

Contents

Synopsis

Documentation

findSandbox :: Path -> IO (Maybe Sandbox) Source #

Find sandbox in path

searchSandbox :: Path -> IO (Maybe Sandbox) Source #

Search sandbox by parent directory

projectSandbox :: Path -> IO (Maybe Sandbox) Source #

Get project sandbox: search up for .cabal, then search for stack.yaml in current directory and cabal sandbox in current + parents

sandboxPackageDbStack :: Sandbox -> GhcM PackageDbStack Source #

Get package-db stack for sandbox

searchPackageDbStack :: Path -> GhcM PackageDbStack Source #

Search package-db stack with user-db as default

restorePackageDbStack :: PackageDb -> GhcM PackageDbStack Source #

Restore package-db stack by package-db

package-db

cabal-sandbox util

cabalSandboxPackageDb :: FilePath -> GhcM FilePath Source #

Get sandbox package-db: arch-os-compiler-version-packages.conf.d

getModuleOpts :: [String] -> Module -> GhcM (PackageDbStack, [String]) Source #

Options for GHC for module and project

getProjectTargetOpts :: [String] -> Project -> Info -> GhcM (PackageDbStack, [String]) Source #

Options for GHC for project target

getProjectSandbox :: MonadLog m => Project -> m (Maybe Sandbox) Source #

Get sandbox of project (if any)

getProjectPackageDbStack :: Project -> GhcM PackageDbStack Source #

Get project package-db stack