val yamlConf = Yaml.decodeFromString(YamlConf.serializer(), File("conf.yml").readText())
result:
Exception in thread "main" net.mamoe.yamlkt.YamlDecodingException: Top-level decoder: illegal beginning token MULTILINE_LIST_FLAG on decoding class
---
^ at line 1, column 2
if yaml starts with '---', e.g.:
result:
without the '---', line it works fine.