cabal-helper-1.0.0.0: Give Haskell development tools access to Cabal project environment

LicenseApache-2.0
Safe HaskellNone
LanguageHaskell2010

CabalHelper.Compiletime.Sandbox

Description

 
Synopsis

Documentation

getSandboxPkgDb Source #

Arguments

:: String

Cabal build platform, i.e. buildPlatform

-> GhcVersion

GHC version (cProjectVersion is your friend)

-> FilePath

Path to the cabal package root directory (containing the cabal.sandbox.config file)

-> IO (Maybe FilePath) 

Get the path to the sandbox package-db in a project

extractSandboxDbDir :: String -> Maybe FilePath Source #

Extract the sandbox package db directory from the cabal.sandbox.config file. Exception is thrown if the sandbox config file is broken.

dropWhileEnd :: (a -> Bool) -> [a] -> [a] Source #