Safe Haskell | None |
---|---|
Language | Haskell98 |
- data SandboxType
- data Sandbox = Sandbox {}
- sandboxType :: Lens' Sandbox SandboxType
- sandbox :: Lens' Sandbox Path
- isSandbox :: Path -> Bool
- guessSandboxType :: Path -> Maybe SandboxType
- sandboxFromPath :: Path -> Maybe Sandbox
- findSandbox :: Path -> IO (Maybe Sandbox)
- searchSandbox :: Path -> IO (Maybe Sandbox)
- projectSandbox :: Path -> IO (Maybe Sandbox)
- sandboxPackageDbStack :: Sandbox -> GhcM PackageDbStack
- searchPackageDbStack :: Path -> GhcM PackageDbStack
- restorePackageDbStack :: PackageDb -> GhcM PackageDbStack
- userPackageDb :: GhcM FilePath
- cabalSandboxPackageDb :: FilePath -> GhcM FilePath
- getModuleOpts :: [String] -> Module -> GhcM (PackageDbStack, [String])
- getProjectTargetOpts :: [String] -> Project -> Info -> GhcM (PackageDbStack, [String])
- getProjectSandbox :: MonadLog m => Project -> m (Maybe Sandbox)
- getProjectPackageDbStack :: Project -> GhcM PackageDbStack
Documentation
data SandboxType Source #
guessSandboxType :: Path -> Maybe SandboxType Source #
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
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