This commit is contained in:
Martin Sosic 2021-09-17 10:10:36 +02:00
parent 5c19d42ed1
commit 123765c494

View File

@ -225,7 +225,7 @@ genDictEntryTypesAndEvaluatorForRecord dataConstructorName fields =
where
go [] = pure (listE [], varE 'pure `appE` conE dataConstructorName)
go ((fieldName, fieldType) : restOfFields) = do
(restDictType, restEvaluator) <- genDictEntryTypesAndEvaluatorForRecord dataConstructorName restOfFields
(restDictType, restEvaluator) <- go restOfFields
let thisDictTypeE =
[|
($(nameToStringLiteralExpr fieldName), $(genDictEntryTypeFromHaskellType fieldType)) :