Commit 4da0b943 authored by ijones's avatar ijones
Browse files

initial Package and Use config import

parents
module Package where
data PackageIdentifier
= PackageIdentifier {pkgName::String, pkgVersion::Version}
deriving (Read, Show, Eq, Ord)
data PackageDescription
= PackageDescription { package :: PackageIdentifier,
licenese :: License,
copyright :: String,
maintainer :: String,
stability :: String}
data PackageConfig
= PackageConfig {packageDescription :: Packagedescription,
buildDepends :: [ Dependency ],
sources :: [ FilePath ],
extensions :: [ Extension ],
library :: String, -- library name
extraLibs :: [ String ],
includeDirs :: [ FilePath ],
includes :: [ FilePath ],
options :: [ (Compiler, [String]) ]
}
-- This module is meant to be local-only to Distribution...
module UseConfig where
data UseConfig
= UseConfig {
pkgIdent :: PkgIdentifier,
license :: License,
copyright :: String,
maintainer :: String,
stability :: String,
auto :: Bool,
-- provides :: [String],
{- A bit pi-in-the-sky; might indicate that this package provides
functionality that other packages also provide, such as a compiler
or GUI framework, and upon which other packages might depend. -}
-- isDefault :: Bool,
-- might indicate if this is the default compiler or GUI framework.
importDirs :: [FilePath],
sourceDirs :: [FilePath],
libraryDirs :: [FilePath],
hsLibraries :: [String],
extraLibraries :: [String],
includeDirs :: [FilePath],
cIncludes :: [String],
depends :: [Dependency], -- use dependencies
extraHugsOpts :: [Opt],
extraCcOpts :: [Opt],
extraLdOpts :: [Opt],
frameworkDirs :: [FilePath],
extraFrameworks:: [String]}
deriving (Read, Show)
Markdown is supported
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