keter-1.3.1: Web application deployment manager, focusing on Haskell web frameworks

Safe HaskellNone

Data.Yaml.FilePath

Description

Utilities for dealing with YAML config files which contain relative file paths.

Synopsis

Documentation

decodeFileRelative :: ParseYamlFile a => FilePath -> IO (Either ParseException a)Source

Parse a config file, using the ParseYamlFile typeclass.

lookupBase :: ParseYamlFile a => BaseDir -> Object -> Text -> Parser aSource

A replacement for the .: operator which will both parse a file path and apply the relative file logic.

lookupBaseMaybe :: ParseYamlFile a => BaseDir -> Object -> Text -> Parser (Maybe a)Source

A replacement for the .:? operator which will both parse a file path and apply the relative file logic.

data BaseDir Source

The directory from which we're reading the config file.