Commit 0678e103 authored by Andrey Mokhov's avatar Andrey Mokhov
Browse files

Clean up.

parent 1057ef38
......@@ -28,7 +28,7 @@ defaultKnownPackages =
, process, runghc, stm, templateHaskell, terminfo, time, transformers, unix
, win32, xhtml ]
-- Package definitions
-- Package definitions (see Package.hs)
array, base, binPackageDb, binary, bytestring, cabal, compiler, containers,
compareSizes, deepseq, deriveConstants, directory, dllSplit, filepath,
genapply, genprimopcode, ghc, ghcCabal, ghcPkg, ghcPrim, ghcPwd,
......
......@@ -9,11 +9,14 @@ import GHC.Generics (Generic)
-- It is helpful to distinguish package names from strings.
type PackageName = String
-- type PackageType = Program | Library
-- pkgPath is the path to the source code relative to the root
data Package = Package
{
pkgName :: PackageName, -- Examples: "ghc", "Cabal"
pkgPath :: FilePath -- "compiler", "libraries/Cabal/Cabal"
-- pkgType :: PackageType -- TopLevel, Library
}
deriving Generic
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment