You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, currently TOML Value data type allows to have values of different type inside Array. I propose to solve this problem by introducing new TValue data type (or renaming current Value to UValue aka _untyped value) with GADT and DataKinds feature. Basically:
I guess we should have UValue and typeCheck :: UValue -> Maybe Value function. Not sure though...
Also, several problems need to be solved. For example, this type also should have typed and untyped version but it's not obvious how to modify it... Let's discuss and see whether it makes sense!
So, currently TOML
Value
data type allows to have values of different type insideArray
. I propose to solve this problem by introducing newTValue
data type (or renaming currentValue
toUValue
aka _untyped value) with GADT andDataKinds
feature. Basically:Basically, approach starting from this slide should be used:
I guess we should have
UValue
andtypeCheck :: UValue -> Maybe Value
function. Not sure though...Also, several problems need to be solved. For example, this type also should have typed and untyped version but it's not obvious how to modify it... Let's discuss and see whether it makes sense!
The text was updated successfully, but these errors were encountered: