keter-1.8.2: Web application deployment manager, focusing on Haskell web frameworks
Safe HaskellNone
LanguageHaskell98

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 a Source #

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.

class ParseYamlFile a where Source #

A replacement for the standard FromJSON typeclass which can handle relative filepaths.

Instances

Instances details
ParseYamlFile FilePath Source # 
Instance details

Defined in Data.Yaml.FilePath

ParseYamlFile SSLConfig Source # 
Instance details

Defined in Keter.Types.Common

ParseYamlFile TLSConfig Source # 
Instance details

Defined in Keter.Types.V04

ParseYamlFile KeterConfig Source # 
Instance details

Defined in Keter.Types.V04

ParseYamlFile StaticHost Source # 
Instance details

Defined in Keter.Types.V04

ParseYamlFile BundleConfig Source # 
Instance details

Defined in Keter.Types.V04

ParseYamlFile AppConfig Source # 
Instance details

Defined in Keter.Types.V04

ParseYamlFile BackgroundConfig Source # 
Instance details

Defined in Keter.Types.V10

ParseYamlFile RedirectConfig Source # 
Instance details

Defined in Keter.Types.V10

ParseYamlFile StaticFilesConfig Source # 
Instance details

Defined in Keter.Types.V10

ParseYamlFile KeterConfig Source # 
Instance details

Defined in Keter.Types.V10

ParseYamlFile ListeningPort Source # 
Instance details

Defined in Keter.Types.V10

ParseYamlFile BundleConfig Source # 
Instance details

Defined in Keter.Types.V10

(ParseYamlFile a, Ord a) => ParseYamlFile (Set a) Source # 
Instance details

Defined in Data.Yaml.FilePath

ParseYamlFile a => ParseYamlFile (Vector a) Source # 
Instance details

Defined in Data.Yaml.FilePath

ParseYamlFile a => ParseYamlFile (NonEmptyVector a) Source # 
Instance details

Defined in Data.Yaml.FilePath

ParseYamlFile (WebAppConfig ()) Source # 
Instance details

Defined in Keter.Types.V10

ParseYamlFile (Stanza ()) Source # 
Instance details

Defined in Keter.Types.V10

data NonEmptyVector a Source #

Constructors

NonEmptyVector !a !(Vector a) 

Instances

Instances details
ParseYamlFile a => ParseYamlFile (NonEmptyVector a) Source # 
Instance details

Defined in Data.Yaml.FilePath