-- | Magic 'PackageName's.
--
-- @since 3.0.0.0
module Distribution.Types.PackageName.Magic where

import Distribution.Types.PackageId
import Distribution.Types.PackageName
import Distribution.Types.Version

-- | Used as a placeholder in "Distribution.Backpack.ReadyComponent"
nonExistentPackageThisIsCabalBug :: PackageName
nonExistentPackageThisIsCabalBug :: PackageName
nonExistentPackageThisIsCabalBug = String -> PackageName
mkPackageName String
"nonexistent-package-this-is-a-cabal-bug"

-- | Used by @cabal new-repl@ and @cabal new-run@
fakePackageName :: PackageName
fakePackageName :: PackageName
fakePackageName = String -> PackageName
mkPackageName String
"fake-package"

-- | 'fakePackageName' with 'version0'.
fakePackageId :: PackageId
fakePackageId :: PackageId
fakePackageId = PackageName -> Version -> PackageId
PackageIdentifier PackageName
fakePackageName Version
version0