Open rightfold opened 8 years ago
data Person = Person { "first name" :: String , "last name" :: String , address :: Address }
Using gShow with this structure returns:
gShow
{address: Main.Address {city: "Faketown", state: "CA"}, first name: "John", last name: "Smith"}
which is obviously not valid PureScript. It should return:
{address: Main.Address {city: "Faketown", state: "CA"}, "first name": "John", "last name": "Smith"}
Good point. It needs to use the same escaping rules as the compiler to cover reserved names too.
Using
gShow
with this structure returns:which is obviously not valid PureScript. It should return: