Find cabal file and sandbox at the same time.

This commit is contained in:
Kazu Yamamoto
2013-03-02 12:18:55 +09:00
parent 12bb30b097
commit f43af4be29
5 changed files with 119 additions and 59 deletions

View File

@@ -62,6 +62,17 @@ quote x = "\"" ++ x ++ "\""
addNewLine :: String -> String
addNewLine = (++ "\n")
----------------------------------------------------------------
data Cradle = Cradle {
cradleCurrentDir :: FilePath
, cradleCabalDir :: Maybe FilePath
, cradleCabalFile :: Maybe FilePath
, cradlePackageConfOpts :: Maybe [String]
} deriving Show
----------------------------------------------------------------
type GHCOption = String
type IncludeDir = FilePath
type Package = String