Commit 9a32cb27 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Allow --with-ghc to be specified when running Cabal

parent 53bf3023
......@@ -102,7 +102,7 @@ import Distribution.Simple.Utils
import Distribution.Simple.Program (Program(..), ProgramConfiguration,
knownPrograms,
addKnownProgram, emptyProgramConfiguration,
haddockProgram)
haddockProgram, ghcProgram)
import Distribution.Simple.InstallDirs
( InstallDirs(..), CopyDest(..),
PathTemplate, toPathTemplate, fromPathTemplate )
......@@ -1059,7 +1059,8 @@ haddockCommand = makeCommand name shortDesc longDesc defaultHaddockFlags options
++ programConfigurationOptions progConf ParseArgs
haddockProgramArgs (\v flags -> flags { haddockProgramArgs = v})
progConf = addKnownProgram haddockProgram
emptyProgramConfiguration
$ addKnownProgram ghcProgram
$ emptyProgramConfiguration
emptyHaddockFlags :: HaddockFlags
emptyHaddockFlags = mempty
......
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