Hi, please,...is it possible to use a capital letter in record syntax data definition? For exampledata Car =Car { CarName :: !Text,CarColor :: !Text} deriving (Show,Generic)When I try this I get: parse error on input `CarName'
The thing is that I'm trying to parse a json file (with Aeson package) that has records starting with capital letter. After that I would like to parse the JSON file with following code:d <- (eitherDecode <$> getJSON) :: IO (Either String [Car])where getJSON gets the json file from urlIf not, what alternative do I have?