diff options
author | Sylvain Henry <sylvain@haskus.fr> | 2020-03-27 17:27:54 +0100 |
---|---|---|
committer | Sylvain Henry <sylvain@haskus.fr> | 2020-04-27 16:47:39 +0200 |
commit | 75b9b6ebbe8326f3a2b099ab7f130960b4567618 (patch) | |
tree | ab7bc7a31c97f78749fab3e08853d8329d7efa48 /haddock-api/src/Haddock/Options.hs | |
parent | 2d2587182568cc5aa4b29d401517337c32459c66 (diff) |
Renamed UnitInfo fields
Diffstat (limited to 'haddock-api/src/Haddock/Options.hs')
-rw-r--r-- | haddock-api/src/Haddock/Options.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/haddock-api/src/Haddock/Options.hs b/haddock-api/src/Haddock/Options.hs index cccca201..0ea1c9e1 100644 --- a/haddock-api/src/Haddock/Options.hs +++ b/haddock-api/src/Haddock/Options.hs @@ -378,8 +378,8 @@ modulePackageInfo :: DynFlags -> (Maybe PackageName, Maybe Data.Version.Version) modulePackageInfo _dflags _flags Nothing = (Nothing, Nothing) modulePackageInfo dflags flags (Just modu) = - ( optPackageName flags <|> fmap packageName pkgDb - , optPackageVersion flags <|> fmap packageVersion pkgDb + ( optPackageName flags <|> fmap unitPackageName pkgDb + , optPackageVersion flags <|> fmap unitPackageVersion pkgDb ) where pkgDb = lookupUnit dflags (moduleUnitId modu) |