autodocodec-yaml-0.3.0.0: Autodocodec interpreters for yaml
Safe HaskellSafe-Inferred
LanguageHaskell2010

Autodocodec.Yaml.IO

Synopsis

Documentation

readYamlConfigFile :: HasCodec a => Path r File -> IO (Maybe a) Source #

Helper function to read a yaml file for a type in HasCodec

This will output a colourful yaml schema if parsing fails.

readFirstYamlConfigFile :: forall a r. HasCodec a => [Path r File] -> IO (Maybe a) Source #

Helper function to read the first in a list of yaml files for a type is HasCodec

This will output a colourful yaml schema if parsing fails.