feed-gipeda-0.3.0.1: CI service around gipeda

Safe HaskellNone
LanguageHaskell2010

FeedGipeda.Config

Contents

Description

feed-gipeda.yaml related stuff like decoding and syntax checking.

Synopsis

Documentation

data Config Source #

Represents a decoded config file. Has the appropriate FromJSON config to be deserializable from YAML.

Instances

Eq Config Source # 

Methods

(==) :: Config -> Config -> Bool #

(/=) :: Config -> Config -> Bool #

Show Config Source # 
FromJSON Config Source # 

Methods

parseJSON :: Value -> Parser Config

parseJSONList :: Value -> Parser [Config]

empty :: Config Source #

A config with no repositories to watch.

decodeFile :: FilePath -> IO (Either String Config) Source #

decodeFile file Either decodes a Config from a YAML file (such as feed-gipeda.yaml) or returns a parse error message.

checkFile :: FilePath -> IO (Maybe String) Source #

Checks for syntax errors while reading a Config from the supplied YAML file.

Orphan instances

FromJSON Repo Source # 

Methods

parseJSON :: Value -> Parser Repo

parseJSONList :: Value -> Parser [Repo]