===================================================================
Gbp-Pq: Name haddock-hardcode-ghc-paths
library
default-language: Haskell2010
- -- In a GHC tree - in particular, in a source tarball - we don't
- -- require alex or happy
- if !flag(in-ghc-tree)
- build-tools: alex >= 2.3, happy >= 1.18
build-depends:
base >= 4.3 && < 4.7,
filepath,
if flag(in-ghc-tree)
cpp-options: -DIN_GHC_TREE
- else
- build-depends: ghc-paths
hs-source-dirs: src
if flag(dev)
#ifdef IN_GHC_TREE
import System.FilePath
#else
-import qualified GHC.Paths as GhcPaths
import Paths_haddock
#endif
libDir <- getInTreeDir
return (ghcPath, libDir)
#else
- return (ghcPath, GhcPaths.libdir)
+ return (ghcPath, "/usr/lib/ghc")
#endif
xs -> return (ghcPath, last xs)
where
#ifdef IN_GHC_TREE
ghcPath = "not available"
#else
- ghcPath = GhcPaths.ghc
+ ghcPath = "/usr/bin/ghc"
#endif