Commit 716d3a18 authored by Duncan Coutts's avatar Duncan Coutts
Browse files

Use the standard autogenModulesDir rather than a local copy

parent 38795a96
......@@ -59,7 +59,7 @@ import Distribution.Simple.LocalBuildInfo
( LocalBuildInfo(..),
InstallDirs(..), absoluteInstallDirs,
prefixRelativeInstallDirs )
import Distribution.Simple.BuildPaths ( autogenModuleName )
import Distribution.Simple.BuildPaths ( autogenModuleName, autogenModulesDir )
import Distribution.Simple.Configure
( localBuildInfoFile )
import Distribution.Simple.Utils
......@@ -146,10 +146,6 @@ initialBuildSteps distPref pkg_descr lbi verbosity suffixes = do
-- * Building Paths_<pkg>.hs
-- ------------------------------------------------------------
-- The directory in which we put auto-generated modules
autogenModulesDir :: LocalBuildInfo -> String
autogenModulesDir lbi = buildDir lbi </> "autogen"
buildPathsModule :: FilePath -> PackageDescription -> LocalBuildInfo -> IO ()
buildPathsModule distPref pkg_descr lbi =
let pragmas
......
Markdown is supported
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