| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Niv.GitHub
Synopsis
- githubUpdate :: (Bool -> Text -> IO Text) -> (Text -> Text -> Text -> IO Text) -> (Text -> Text -> IO GithubRepo) -> Update () ()
- githubURLTemplate :: Text
- data GithubRepo = GithubRepo {}
- githubRepo :: Text -> Text -> IO GithubRepo
- abortCouldNotFetchGitHubRepo :: Text -> (Text, Text) -> IO a
- defaultRequest :: [Text] -> IO Request
- githubLatestRev :: Text -> Text -> Text -> IO Text
- abortCouldNotGetRev :: Text -> Text -> Text -> Response ByteString -> IO a
- githubHost :: Text
- githubApiPort :: Int
- githubApiHost :: Text
- githubSecure :: Bool
- githubPath :: Text
- abort :: Text -> IO a
- tshow :: Show a => a -> Text
Documentation
Arguments
| :: (Bool -> Text -> IO Text) | prefetch |
| -> (Text -> Text -> Text -> IO Text) | latest revision |
| -> (Text -> Text -> IO GithubRepo) | get repo |
| -> Update () () |
The GitHub update function TODO: fetchers for: * npm * hackage * docker * ... ?
data GithubRepo Source #
Constructors
| GithubRepo | |
Fields | |
githubRepo :: Text -> Text -> IO GithubRepo Source #
Get the latest revision for owner, repo and branch. TODO: explain no error handling
abortCouldNotGetRev :: Text -> Text -> Text -> Response ByteString -> IO a Source #
githubHost :: Text Source #
githubApiPort :: Int Source #
githubApiHost :: Text Source #
githubSecure :: Bool Source #
githubPath :: Text Source #