hackage-info-0.1.0.0: Get some

Safe HaskellNone
LanguageHaskell2010

Parse

Synopsis

Documentation

dropLine :: Parser () Source

Parse (and toss) the rest of the current line

value :: ASetter Repo Repo t a -> Text -> Parser a -> Parser Repo Source

Parse a value, given a setter, header string, and body parser

str :: Parser (Maybe Text) Source

Parse a quoted string

parseCreated :: Parser Repo Source

parseCreated = value created_at "  "created_at": " date

parseUpdated :: Parser Repo Source

parseUpdated = value updated_at "  "updated_at": " date

parsePushed :: Parser Repo Source

parsePushed = value pushed_at "  "pushed_at": " date

parseSizeParser :: Parser Repo Source

parseSizeParser = value size "  "size": " integer

parseStargazers :: Parser Repo Source

parseStargazers = value stargazers_count "  "stargazers_count": " integer

parseWatchers_count :: Parser Repo Source

parseWatchers_count = value watchers_count "  "watchers_count": " integer

parseLang :: Parser Repo Source

parseLang = value language "  "language": " str

parseForkCount :: Parser Repo Source

parseForkCount = value forks_count "  "forks_count": " integer

parseOpenIssues :: Parser Repo Source

parseOpenIssues = value open_issues_count "  "open_issues_count": " integer

parseWatchers :: Parser Repo Source

parseWatchers = value watchers "  "watchers": " integer

parseNetworkCount :: Parser Repo Source

parseNetworkCount = value network_count "  "network_count": " integer

parseSubscribers :: Parser Repo Source

parseSubscribers = value subscribers_count "  "subscribers_count": " integer

parseLine :: Parser Repo Source

Parse an entire line into a Repo

parseLines :: Parser Repo Source

Parse a bunch of lines into Repos