Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- buildAll :: Int -> Maybe String -> Maybe String -> Maybe FilePath -> IO ()
- check :: Maybe String -> Maybe FilePath -> IO Bool
- mkPkg :: Maybe String -> Bool -> Bool -> Bool -> [IO ()] -> [String] -> Maybe String -> Int -> IO ()
- cleanAll :: IO ()
- buildHelper :: Bool -> ATSDependency -> IO ()
- displayList :: String -> IO ()
- atspkgVersion :: Version
- packageCompiler :: FilePath -> IO ()
- newtype Version = Version [Natural]
- data Pkg = Pkg {
- bin :: [Bin]
- test :: [Bin]
- libraries :: [Lib]
- man :: Maybe Text
- completions :: Maybe Text
- version :: Version
- compiler :: Version
- dependencies :: [LibDep]
- clib :: [LibDep]
- buildDeps :: [LibDep]
- ccompiler :: Text
- cflags :: [Text]
- atsFlags :: [Text]
- atsSource :: [Src]
- dynLink :: Bool
- extSolve :: Solver
- debPkg :: Maybe Debian
- atsLib :: Bool
- data Bin = Bin {}
- data Lib = Lib {}
- data Src = Src {}
- data ATSConstraint = ATSConstraint {}
- data ATSDependency = ATSDependency {}
- data TargetPair = TargetPair {}
- data ForeignCabal = ForeignCabal {
- projectFile :: Maybe Text
- cabalFile :: Text
- objectFile :: Text
- newtype ATSPackageSet = ATSPackageSet {
- _atsPkgSet :: [ATSDependency]
- type LibDep = (Text, ATSConstraint)
- type DepSelector = ATSDependency -> [LibDep]
- data PackageError
- = Unrecognized String
- | DepErr ResolveError
- data Debian = Debian {}
- dirLens :: Lens' ATSDependency Text
Documentation
buildAll :: Int -> Maybe String -> Maybe String -> Maybe FilePath -> IO () Source #
Build in current directory or indicated directory
buildHelper :: Bool -> ATSDependency -> IO () Source #
Ecosystem functionality
displayList :: String -> IO () Source #
Functions involving the compiler
packageCompiler :: FilePath -> IO () Source #
Make a tarball from a directory containing the compiler.
Types
Instances
Eq Version | |
Ord Version | |
Show Version | |
Generic Version | |
NFData Version | |
Defined in Data.Dependency.Type | |
Binary Version | |
Pretty Version | |
Defined in Language.ATS.Package.PackageSet prettyList :: [Version] -> Doc | |
Inject Version | |
Defined in Language.ATS.Package.Type injectWith :: InterpretOptions -> InputType Version | |
Interpret Version | |
Defined in Language.ATS.Package.Debian | |
type Rep Version | |
Defined in Data.Dependency.Type |
Data type associated with atspkg.dhall
file.
Pkg | |
|
Instances
Bin | |
|
Instances
Generic Bin Source # | |
Binary Bin Source # | |
Interpret Bin Source # | |
Defined in Language.ATS.Package.Type | |
type Rep Bin Source # | |
Defined in Language.ATS.Package.Type type Rep Bin = D1 (MetaData "Bin" "Language.ATS.Package.Type" "ats-pkg-3.2.4.4-inplace" False) (C1 (MetaCons "Bin" PrefixI True) ((S1 (MetaSel (Just "src") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: (S1 (MetaSel (Just "target") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "libs") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Text]))) :*: ((S1 (MetaSel (Just "hsDeps") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [ForeignCabal]) :*: S1 (MetaSel (Just "hs2ats") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [TargetPair])) :*: (S1 (MetaSel (Just "gcBin") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool) :*: S1 (MetaSel (Just "extras") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Text]))))) |
Lib | |
|
Instances
Instances
Generic Src Source # | |
Binary Src Source # | |
Interpret Src Source # | |
Defined in Language.ATS.Package.Type | |
type Rep Src Source # | |
Defined in Language.ATS.Package.Type type Rep Src = D1 (MetaData "Src" "Language.ATS.Package.Type" "ats-pkg-3.2.4.4-inplace" False) (C1 (MetaCons "Src" PrefixI True) ((S1 (MetaSel (Just "atsSrc") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "cTarget") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) :*: (S1 (MetaSel (Just "atsGen") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [TargetPair]) :*: S1 (MetaSel (Just "extras") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Text])))) |
data ATSConstraint Source #
Instances
data ATSDependency Source #
Type for a dependency
ATSDependency | |
|
Instances
data TargetPair Source #
This is just a tuple, except I can figure out how to use it with Dhall.
Instances
Generic TargetPair Source # | |
Defined in Language.ATS.Package.Type type Rep TargetPair :: Type -> Type # from :: TargetPair -> Rep TargetPair x # to :: Rep TargetPair x -> TargetPair # | |
Binary TargetPair Source # | |
Defined in Language.ATS.Package.Type | |
Interpret TargetPair Source # | |
Defined in Language.ATS.Package.Type autoWith :: InterpretOptions -> Type TargetPair | |
type Rep TargetPair Source # | |
Defined in Language.ATS.Package.Type type Rep TargetPair = D1 (MetaData "TargetPair" "Language.ATS.Package.Type" "ats-pkg-3.2.4.4-inplace" False) (C1 (MetaCons "TargetPair" PrefixI True) (S1 (MetaSel (Just "hs") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: (S1 (MetaSel (Just "ats") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "cpphs") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool)))) |
data ForeignCabal #
ForeignCabal | |
|
Instances
newtype ATSPackageSet Source #
Instances
Pretty ATSPackageSet Source # | |
Defined in Language.ATS.Package.PackageSet pretty :: ATSPackageSet -> Doc prettyList :: [ATSPackageSet] -> Doc | |
Interpret ATSPackageSet Source # | |
Defined in Language.ATS.Package.PackageSet autoWith :: InterpretOptions -> Type ATSPackageSet |
type LibDep = (Text, ATSConstraint) Source #
type DepSelector = ATSDependency -> [LibDep] Source #
You likely want $sel:libDeps:ATSDependency
or $sel:libBldDeps:ATSDependency
data PackageError Source #
Unrecognized String | |
DepErr ResolveError |
Instances
Pretty PackageError Source # | |
Defined in Language.ATS.Package.Error pretty :: PackageError -> Doc prettyList :: [PackageError] -> Doc |
Instances
Lenses
dirLens :: Lens' ATSDependency Text Source #