Commit f907f1a6 authored by Edward Z. Yang's avatar Edward Z. Yang
Browse files

Canonicalize path to Cabal file, partially towards #2994.

Signed-off-by: default avatarEdward Z. Yang <>
parent 22b6aad0
......@@ -107,7 +107,8 @@ import Distribution.Text
-- Base
import System.Environment(getArgs, getProgName)
import System.Directory(removeFile, doesFileExist,
doesDirectoryExist, removeDirectoryRecursive)
doesDirectoryExist, removeDirectoryRecursive,
import System.Exit (exitWith,ExitCode(..))
import System.FilePath(searchPathSeparator)
import Distribution.Compat.Environment (getEnvironment)
......@@ -232,7 +233,8 @@ configureAction hooks flags args = do
case mdescr of
Just descr -> return (Nothing, descr)
Nothing -> do
pdfile <- defaultPackageDesc verbosity
pdfile0 <- defaultPackageDesc verbosity
pdfile <- canonicalizePath pdfile0
descr <- readPackageDescription verbosity pdfile
return (Just pdfile, descr)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment