Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type Version = (String, String)
- manifestName :: FilePath
- readManifest :: IO AppInfo
- readManifest' :: FilePath -> IO AppInfo
- writeManifest :: AppInfo -> IO ()
- appId :: AppInfo -> String
- parseRepoInfo :: [String] -> String
- parseComponentId :: String -> Either String (String, String)
- extractCompVersions :: FilePath -> IO String
- decodeManifest :: FilePath -> ByteString -> AppInfo
- appInfoToVersion :: AppInfo -> Version
- getAllManifestPaths :: FilePath -> IO [FilePath]
- getDependencies :: Maybe String -> IO [FilePath]
- getDependencies' :: Dependencies -> Maybe [String] -> IO [FilePath]
- isRegularFile :: FilePath -> Bool
Documentation
manifestName :: FilePath Source
Each application must have a `component.json`
readManifest' :: FilePath -> IO AppInfo Source
writeManifest :: AppInfo -> IO () Source
parseRepoInfo :: [String] -> String Source
Parse the repo info into an app ID
parseComponentId :: String -> Either String (String, String) Source
Given a possible component ID, return the user and the repo constituents
extractCompVersions :: FilePath -> IO String Source
Given a path, find all the `component.json` and return a JSON string
decodeManifest :: FilePath -> ByteString -> AppInfo Source
Given a path and the file content that the path points to, return the
manifest in AppInfo
form.
appInfoToVersion :: AppInfo -> Version Source
getAllManifestPaths :: FilePath -> IO [FilePath] Source
Given a path, find all the `component.json`s
getDependencies :: Maybe String -> IO [FilePath] Source
Simply get all dependencies if no mode is provided.
Get the component dependency list by providing a mode, or not.
getDependencies' :: Dependencies -> Maybe [String] -> IO [FilePath] Source
Helper function to get the selected dependency list given the full dependency list, all modes, and the target mode to select the list by.
isRegularFile :: FilePath -> Bool Source
Regular file != *nix-style hidden file