diff options
Diffstat (limited to 'src/Haddock/ModuleTree.hs')
-rw-r--r-- | src/Haddock/ModuleTree.hs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Haddock/ModuleTree.hs b/src/Haddock/ModuleTree.hs index 2413f951..eccfd3e5 100644 --- a/src/Haddock/ModuleTree.hs +++ b/src/Haddock/ModuleTree.hs @@ -9,7 +9,11 @@ module Haddock.ModuleTree ( ModuleTree(..), mkModuleTree ) where import Haddock.DocName import GHC ( HsDoc, Name ) import Module ( Module, moduleNameString, moduleName, modulePackageId ) -import PackageConfig ( packageIdString ) +#if __GLASGOW_HASKELL__ >= 609 +import Module (packageIdString) +#else +import PackageConfig (packageIdString) +#endif data ModuleTree = Node String Bool (Maybe String) (Maybe (HsDoc Name)) [ModuleTree] |