Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- toYamlViaCodec :: HasCodec a => a -> YamlBuilder
- toYamlVia :: ValueCodec a void -> a -> YamlBuilder
- newtype AutodocodecYaml a = AutodocodecYaml {
- unAutodocodecYaml :: a
Documentation
toYamlViaCodec :: HasCodec a => a -> YamlBuilder Source #
Implement toYaml
using a type's codec
toYamlVia :: ValueCodec a void -> a -> YamlBuilder Source #
Implement toYaml
using a given codec
newtype AutodocodecYaml a Source #
Instances
HasCodec a => ToYaml (AutodocodecYaml a) Source # | |
Defined in Autodocodec.Yaml.Encode toYaml :: AutodocodecYaml a -> YamlBuilder # |