SimpleYaml to trait