Copyright | (c) Daniel Firth 2018 |
---|---|
License | BSD3 |
Maintainer | locallycompact@gmail.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
This file defines the V9 Baserock Yaml Schema in Haskell
- data ChunkInstructions = ChunkInstructions {
- chunkInstructionsName :: Text
- buildSystem :: Text
- preConfigureCommands :: [Text]
- configureCommands :: [Text]
- postConfigureCommands :: [Text]
- preBuildCommands :: [Text]
- buildCommands :: [Text]
- postBuildCommands :: [Text]
- preInstallCommands :: [Text]
- installCommands :: [Text]
- postInstallCommands :: [Text]
- data Chunk = Chunk {}
- data Stratum = Stratum {
- stratumName :: Text
- stratumDescription :: Maybe Text
- stratumBDs :: [StratumBD]
- chunks :: [Chunk]
- data StratumBD = StratumBD {}
- data StratumInclude = StratumInclude {}
- data System = System {
- systemName :: Text
- systemDescription :: Maybe Text
- arch :: Text
- strata :: [StratumInclude]
- configurationExtensions :: [Text]
- type StratumAST = (Stratum, [(FilePath, ChunkInstructions)])
- type SystemAST = (System, [(FilePath, StratumAST)])
- decodeStratumAST :: FilePath -> IO (Either ParseException StratumAST)
- encodeStratumAST :: FilePath -> StratumAST -> IO ()
- decodeSystemAST :: FilePath -> IO (Either ParseException SystemAST)
- encodeSystemAST :: FilePath -> SystemAST -> IO ()
- class ToJSON a => ToPrettyYaml a where
Schema
data ChunkInstructions Source #
ChunkInstructions | |
|
Stratum | |
|
data StratumInclude Source #
System | |
|
ASTs
type StratumAST = (Stratum, [(FilePath, ChunkInstructions)]) Source #
encodeStratumAST :: FilePath -> StratumAST -> IO () Source #
toPrettyYaml
class ToJSON a => ToPrettyYaml a where Source #
fieldOrder :: a -> [Text] Source #
fieldCmp :: a -> Text -> Text -> Ordering Source #
toPrettyYaml :: a -> ByteString Source #