I am trying to read a yaml file there are using numbers as keys eg.
test:
10: 42
11: 60
but when i run this script
#if INTERACTIVE
#r "FSharp.Configuration.dll"
#endif
open FSharp.Configuration
let [<LiteralAttribute>] test1 = """
test:
t1: 42
t2: 60"""
let [<LiteralAttribute>] test2 = """
test:
10: 42
11: 60"""
type Config1 = YamlConfig< YamlText = test1> // no error
type Config2 = YamlConfig< YamlText = test2> // error
it fails with
Script.fs(24,16): error FS3033: The type provider 'FSharp.Configuration.ConfigTypeProvider+FSharpConfigurationProvider' reported an error: The input list was empty.
where line 24 are type Config2 = YamlConfig< YamlText = test2> (test1 is just to pin point the problem and do not fail)
I am trying to read a yaml file there are using numbers as keys eg.
but when i run this script
it fails with
Script.fs(24,16): error FS3033: The type provider 'FSharp.Configuration.ConfigTypeProvider+FSharpConfigurationProvider' reported an error: The input list was empty.
where line 24 aretype Config2 = YamlConfig< YamlText = test2>
(test1 is just to pin point the problem and do not fail)Are there a way around that?