Skip to content

Commit

Permalink
Fix haddock executable name
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyberg committed Aug 18, 2015
1 parent 603c791 commit e20ea86
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Stack/Build/Haddock.hs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ generateHaddockIndex descr envOverride wc packageIDs docRelDir destDir = do
readProcessNull
(Just destDir)
envOverride
(compilerExeName wc)
(haddockExeName wc)
(["--gen-contents", "--gen-index"] ++ concatMap fst interfaceOpts)
where
toInterfaceOpt pid@(PackageIdentifier name _) = do
Expand Down
4 changes: 4 additions & 0 deletions src/Stack/Types/Compiler.hs
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,7 @@ isWantedCompiler _ _ _ = False
compilerExeName :: WhichCompiler -> String
compilerExeName Ghc = "ghc"
compilerExeName Ghcjs = "ghcjs"

haddockExeName :: WhichCompiler -> String
haddockExeName Ghc = "haddock"
haddockExeName Ghcjs = "haddock-ghcjs"

0 comments on commit e20ea86

Please sign in to comment.