Safe Haskell | None |
---|---|
Language | Haskell2010 |
- cgen :: ATSToolConfig -> [String] -> FilePath -> Rules ()
- cgenPretty :: ATSToolConfig -> FilePath -> Rules ()
- cleanATS :: Rules ()
- atsBin :: BinaryTarget -> Rules ()
- atsLex :: FilePattern -> Rules ()
- cabalExport :: ForeignCabal -> Rules ()
- patsHome :: MonadIO m => Version -> m String
- getSubdirs :: FilePath -> IO [FilePath]
- ccToString :: CCompiler -> String
- ccFromString :: String -> CCompiler
- ccToDir :: CCompiler -> String
- compatible :: CCompiler -> CCompiler -> Bool
- host :: String
- patscc :: MonadIO m => ATSToolConfig -> m String
- patsopt :: MonadIO m => ATSToolConfig -> m String
- newtype Version :: * = Version [Integer]
- data ForeignCabal = ForeignCabal {
- projectFile :: Maybe Text
- cabalFile :: Text
- objectFile :: Text
- data BinaryTarget = BinaryTarget {
- cFlags :: [String]
- toolConfig :: ATSToolConfig
- gc :: Bool
- libs :: [String]
- src :: [String]
- hsLibs :: [ForeignCabal]
- genTargets :: [(String, String, Bool)]
- linkTargets :: [(String, String)]
- binTarget :: String
- cDeps :: [String]
- otherDeps :: [String]
- tgtType :: ArtifactType
- data ATSToolConfig = ATSToolConfig {
- libVersion :: Version
- compilerVer :: Version
- hasPretty :: Bool
- cc :: CCompiler
- data CCompiler :: * where
- data ArtifactType
Shake Rules
:: ATSToolConfig | |
-> [String] | Additional source files |
-> FilePath | Directory containing ATS source code |
-> Rules () |
cgenPretty :: ATSToolConfig -> FilePath -> Rules () Source #
This uses pats-filter
to prettify the errors.
atsBin :: BinaryTarget -> Rules () Source #
atsLex :: FilePattern -> Rules () Source #
Build a .lats
file.
cabalExport :: ForeignCabal -> Rules () Source #
Actions
Helper functions
ccToString :: CCompiler -> String #
ccFromString :: String -> CCompiler #
compatible :: CCompiler -> CCompiler -> Bool Source #
Whether generated libraries are to be considered compatible.
data ForeignCabal Source #
Data type containing information about Haskell components of a build.
ForeignCabal | |
|
data BinaryTarget Source #
Type for binary and library builds with ATS.
BinaryTarget | |
|
data ATSToolConfig Source #
Information about where to find patscc
and patsopt
.
ATSToolConfig | |
|