Skip to content

Commit

Permalink
Sorry, removing merge commits
Browse files Browse the repository at this point in the history
  • Loading branch information
fmaste committed Aug 6, 2016
2 parents 1b7fb7e + 3339f08 commit 7201de3
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Cabal/Distribution/PackageDescription.hs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ module Distribution.PackageDescription (

-- ** Module names
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
allModuleNames,
allModuleNamesAutogen,
Expand All @@ -41,6 +42,10 @@ module Distribution.PackageDescription (
allModuleNames,
allModuleNamesAutogen,
>>>>>>> Rename function
=======
allModuleNames,
allModuleNamesAutogen,
>>>>>>> 3339f087be58fdcd6d60f5ce738a5ba68f91c4ae

-- ** Libraries
Library(..),
Expand Down
10 changes: 10 additions & 0 deletions Cabal/Distribution/PackageDescription/Check.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1142,6 +1142,7 @@ checkCabalVersion pkg =

, check (specVersion pkg >= Version [1,25] []
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
&& elem (autogenModuleName pkg) (allModuleNames pkg)
&& not (elem (autogenModuleName pkg) (allModuleNamesAutogen pkg)) ) $
Expand All @@ -1157,6 +1158,10 @@ checkCabalVersion pkg =
&& elem (autogenModuleName pkg) (allModuleNames pkg)
&& not (elem (autogenModuleName pkg) (allModuleNamesAutogen pkg)) ) $
>>>>>>> Rename function
=======
&& elem (autogenModuleName pkg) (allModuleNames pkg)
&& not (elem (autogenModuleName pkg) (allModuleNamesAutogen pkg)) ) $
>>>>>>> 3339f087be58fdcd6d60f5ce738a5ba68f91c4ae
PackageBuildWarning $
"Packages using 'cabal-version: >= 1.25' and the autogenerated "
++ "module Paths_* must include it also on the 'autoge-modules' field "
Expand All @@ -1167,6 +1172,7 @@ checkCabalVersion pkg =

, check (specVersion pkg < Version [1,25] []
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
&& elem (autogenModuleName pkg) (allModuleNames pkg)
&& not (elem (autogenModuleName pkg) (allModuleNamesAutogen pkg)) ) $
Expand All @@ -1182,6 +1188,10 @@ checkCabalVersion pkg =
&& elem (autogenModuleName pkg) (allModuleNames pkg)
&& not (elem (autogenModuleName pkg) (allModuleNamesAutogen pkg)) ) $
>>>>>>> Rename function
=======
&& elem (autogenModuleName pkg) (allModuleNames pkg)
&& not (elem (autogenModuleName pkg) (allModuleNamesAutogen pkg)) ) $
>>>>>>> 3339f087be58fdcd6d60f5ce738a5ba68f91c4ae
PackageDistSuspiciousWarn $
"From version 1.25 autogenerated modules are included on the "
++ "'autoge-modules' field besides 'exposed-modules' and "
Expand Down
6 changes: 6 additions & 0 deletions Cabal/Distribution/Simple/SrcDist.hs
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,9 @@ filterAutogenModules pkg_descr0 = mapLib filterAutogenModuleLib $
filterAutogenModuleLib lib = lib {
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
=======
>>>>>>> 3339f087be58fdcd6d60f5ce738a5ba68f91c4ae
exposedModules = filter (filterFunction (libBuildInfo lib)) (exposedModules lib)
}
filterAutogenModuleBI bi = bi {
Expand All @@ -325,6 +328,7 @@ filterAutogenModules pkg_descr0 = mapLib filterAutogenModuleLib $
filterFunction bi = \mn ->
mn /= pathsModule
&& not (elem mn (autogenModules bi))
<<<<<<< HEAD
=======
exposedModules = filter (/=pathsModule) (exposedModules lib)
=======
Expand All @@ -342,6 +346,8 @@ filterAutogenModules pkg_descr0 = mapLib filterAutogenModuleLib $
mn /= pathsModule
&& not (elem mn (autogenModules bi))
>>>>>>> Filter autogen modules from sdist
=======
>>>>>>> 3339f087be58fdcd6d60f5ce738a5ba68f91c4ae

-- | Prepare a directory tree of source files for a snapshot version.
-- It is expected that the appropriate snapshot version has already been set
Expand Down
15 changes: 15 additions & 0 deletions Cabal/Distribution/Types/PackageDescription.hs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ module Distribution.Types.PackageDescription (
withBenchmark,
allBuildInfo,
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
allModuleNames,
allModuleNamesAutogen,
Expand All @@ -52,6 +53,10 @@ module Distribution.Types.PackageDescription (
allModuleNames,
allModuleNamesAutogen,
>>>>>>> Rename function
=======
allModuleNames,
allModuleNamesAutogen,
>>>>>>> 3339f087be58fdcd6d60f5ce738a5ba68f91c4ae
updatePackageDescription,
pkgComponents,
pkgBuildableComponents,
Expand Down Expand Up @@ -313,6 +318,7 @@ allBuildInfo pkg_descr = [ bi | lib <- allLibraries pkg_descr
-- It is not exluded if it already appears here.
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
allModuleNames :: PackageDescription -> [ModuleName]
allModuleNames pkg_descr = (case library pkg_descr of
=======
Expand All @@ -323,6 +329,10 @@ allNonAutogenModuleNames pkg_descr = (case library pkg_descr of
allModuleNames :: PackageDescription -> [ModuleName]
allModuleNames pkg_descr = (case library pkg_descr of
>>>>>>> Rename function
=======
allModuleNames :: PackageDescription -> [ModuleName]
allModuleNames pkg_descr = (case library pkg_descr of
>>>>>>> 3339f087be58fdcd6d60f5ce738a5ba68f91c4ae
Nothing -> []
(Just lib) -> libModules lib)
++ concatMap otherModules (allBuildInfo pkg_descr)
Expand All @@ -331,6 +341,7 @@ allModuleNames pkg_descr = (case library pkg_descr of
-- It is not added if it doesn't already appears here.
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
allModuleNamesAutogen :: PackageDescription -> [ModuleName]
allModuleNamesAutogen pkg_descr = concatMap autogenModules (allBuildInfo pkg_descr)
=======
Expand All @@ -341,6 +352,10 @@ allAutogenModuleNames pkg_descr = concatMap autogenModules (allBuildInfo pkg_des
allModuleNamesAutogen :: PackageDescription -> [ModuleName]
allModuleNamesAutogen pkg_descr = concatMap autogenModules (allBuildInfo pkg_descr)
>>>>>>> Rename function
=======
allModuleNamesAutogen :: PackageDescription -> [ModuleName]
allModuleNamesAutogen pkg_descr = concatMap autogenModules (allBuildInfo pkg_descr)
>>>>>>> 3339f087be58fdcd6d60f5ce738a5ba68f91c4ae

-- ------------------------------------------------------------
-- * Utils
Expand Down

0 comments on commit 7201de3

Please sign in to comment.